Open rhyshorner opened 5 years ago
@rhyshorner - thank you for the corrections... i can run but am failing to get an OK response in my initial commands "ATE1" even "AT+SBDMTA=0"
Did you manage to get your code working? @MakerSnake, a little help please
@rhyshorner, I am using this code to send data of temperature sensor through rockblock 9602. I installed your library. when I try to run the code. it doesn’t do anything. could you point to me what I suppose to change. by the way I am using USB to TTL Serial Adapter. thanks
line 315 in rockBlock.py needs to have parenthesis around the string print function to be used in python3
currently is;
print "sendMessageWithBytes bytes should be <= 340 bytes"
should be;
print ("sendMessageWithBytes bytes should be <= 340 bytes")
line 536 should also have parenthesis
print("NO SIGNAL")
line 567 should also have parenthsisprint("No message content.. strange!")
also on line 373, rockblock.py, I had to add some bytes function to get it working on python3 from:
self.s.write(command + "\r")
to:self.s.write(bytes(b'command') + bytes(b'\r'))