I would like to send a response back to the node that requested information previously. I have the value of the address in the string as follows...
::\x03\xea\x5a::OK_TO_START::
I am trying to pull the node address from the string of serial data and send a response. When printed I see \x03\xea\x5a as expected. However when incerted in to the rpc() it doesn't work. Any help would be appreciated.
def sendResponse(pf):
print "sendResponse", pf ;
#process for the address
tagaddress = pf[2:14]
response = pf[14:32]
#tagaddress = '\x03\xea\x5a'
rpc(tagaddress, 'tellLCD', response)
::\x03\xea\x5a::OK_TO_START::
I am trying to pull the node address from the string of serial data and send a response. When printed I see \x03\xea\x5a as expected. However when incerted in to the rpc() it doesn't work. Any help would be appreciated.
def sendResponse(pf):
print "sendResponse", pf ;
#process for the address
tagaddress = pf[2:14]
response = pf[14:32]
#tagaddress = '\x03\xea\x5a'
rpc(tagaddress, 'tellLCD', response)
Comment