I’ve seen sample code from Digi using typing.
Running the build on PyCharms works, but when running on the XBee it raises the following error:
ImportError: no module named ‘typing’
Product family: XB3-24
Function set: Digi XBee3 Zigbee 3.0 TH
Firmware version: 1010
I’ve posted a very specific problem and you’ve pointed me to the root of the manual. That is far from helpful.
I can see from micropython.org that ‘typing’ is not there.
But then again, Digi own samples use it.
I want to confirm if Digi samples are broken or if the package ‘typing’ isn’t really available.
yes Eric’s comment is very unhelpful but the real answer is not much better however not Digi’s fault.
Typing does not appear to be implemented in micropython.
Can you link to where Digi use it in the samples?
If you are referring to the typing references here:
Then these are simply used for typehints.
typehints - This folder contains the API definitions of the MicroPython modules available in the XBee devices. These definitions are used by the Digi XBee MicroPython PyCharm Plugin for syntax checking, code completion and refactoring.
Basically, it is just for PyCharm support not for micropython itself.
Creating your Internet of Things
Indeed the only sample files using typing are the API definitions.