I am currently running a Python script running on a TRB245 and sending some data using MQTT. I am now needing to include either the device IMEI or serial number in the data packet I am sending. I am unclear how I can get either the device IMEI or serial number using Python. I have looked through various Wiki's and forums without success so far.
I would appreciate if anyone can guide me how I can get this data using Python. I see there is a sys Python library with OpenWRT, but I would not know which method or parameter to use to find either of these device data fields.
Thanks