Home/Support/Support Forum/How do I go about getting JWT support for MQTT transactions on the LTE-M?

How do I go about getting JWT support for MQTT transactions on the LTE-M?

+1 vote
I am currently working on a project that integrates Google IoT Core and the XBee LTE-M Cellular module in order to create a MQTT-based messaging system. The only problem is Google requires JWTs to be used as the password for IoT transactions (also requires this for basic TCP posts). Is the XBee module capable of providing this JWT itself? More specifically, does it have the hardware necessary for creating JWTs?

If not, how can I go about creating these JWTs?
asked Sep 7, 2018 in XBee Cellular by adragott New to the Community (1 point)
recategorized Sep 7, 2018 by rmaroun

Please log in or register to answer this question.

1 Answer

0 votes
Digi has a repository with sample code and libraries at https://github.com/digidotcom/xbee-micropython, but nothing related to JWT.

You might be able to port one of the smaller Python-based libraries, or potentially roll your own with support for a minimal subset of the spec necessary to connect to Google IoT Core.

MicroPython on XBee Cellular includes SHA256 support in uhashlib, base64-related code in ubinascii and JSON-handling code in ujson. Does that cover the necessary pieces to work with JWT?
answered Sep 10, 2018 by TomCollins Veteran of the Digi Community (2,382 points)