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 parenthsis print("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'))
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 parenthsis
print("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'))