Sigfox message Query
-
If I put a byte such as ascii 159 (hex 9F) into the message the system sends C29F. If the value corresponds to a printable acsii character such as "A" it sends 41 which is the hex value for "A". I have encoded a temperature value into a single byte but when this is above a certain value the systems sends two bytes. Any Ideas??
-
@pmulvey it looks like you have a conversion to UTF-8 encoding happening somewhere.
Difficult to know exactly at which point this is happening without more details, though.
-
@pmulvey Solved. I put my encoded bytes into a bytearray and passed this to socket. send. It was this method that was adding bytes to any value >127. So this method seems to be implementing utf-8. It obviously can distinguish between me passing chr(0x9f) and 'b/x9f'.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login