but it tells you to download a CoAP library from https://pypi.org/project/CoAPthon/ and looking at that library it does not seem to be built for micropython. I’m not sure what this documentation really is, as it refers to XBee3 but then it lists a bunch of steps to perform on a Host PC, without ever connecting the dots re: what you do on the XBee3 / Micropython side.
What’s up with this - is there a CoAP library I can just download into the XBee3?
Thank you. If I were to find a DTLS library that worked in micropython, I should be able to do this myself by just creating the packets and sending them over a SOCK_DGRAM though?
Unfortunately I think you’ll be hard pressed to find (or write) a pure-MicroPython implementation of DTLS. But if you do, and are able to use that library from MicroPython (i.e. it doesn’t consume all available memory) then yes, absolutely.
In future firmware versions Digi may be able to incorporate DTLS functionality. No guarantees on when or if that might happen.
For our own reference, are you using your own CoAP server with DTLS, or a third party service?