2011-12-01, 09:45
Montellesse,
I'm writing a python script that's trying to catch the "OnStop" notification (by listening on port 9090).
While I can search the data for "OnStop", a neater way would be to detect the end of the notification and then parse the full JSON response.
However, I'm having difficulty in making the script determine the end of the notification as there doesn't seem to be any break character (maybe this is intentional - i.e. as required by the specification).
Do you have any tips for catching the end of the notification?
Thanks,
el_P
I'm writing a python script that's trying to catch the "OnStop" notification (by listening on port 9090).
While I can search the data for "OnStop", a neater way would be to detect the end of the notification and then parse the full JSON response.
However, I'm having difficulty in making the script determine the end of the notification as there doesn't seem to be any break character (maybe this is intentional - i.e. as required by the specification).
Do you have any tips for catching the end of the notification?
Thanks,
el_P