View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#66
Originally Posted by rlinfati View Post
any example how use "the parser" ?
Code:
import gsmdecode

# pnatd gives you something like this
# +CUSD: 0,"4F207072617A6F2...",68

# in this example: reply = "4F207072617A6F2..."
reply = ...
# in this example: encoding = 68
encoding = ...

msg = gsmdecode.decode(reply, encoding)
print msg
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following User Says Thank You to pycage For This Useful Post: