#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Modbus TestKit: Implementation of Modbus protocol in python
(C)2009 - Luc Jean - [email protected]
(C)2009 - Apidev - http://www.apidev.fr
This is distributed under GNU LGPL license, see license.txt
"""
from modbus import *
import logging
import sys
import time
from hooks import call_hooks
#-------------------------------------------------------------------------------
class RtuQuery(Query):
"""Subclass of a Query. Adds the Modbus RTU specific part of the protocol"""
def __init__(self):
"""Constructor"""
Query.__init__(self)
self._request_address = 0
self._response_address = 0
def build_request(self, pdu, slave):
""&