-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_publish IPPROTO_SEC type error #42
Comments
Hi @StevenSOConnell , Based on that error message, it looks like you might not be using the We would recommend using the Digi XBee MicroPython PyCharm Plugin to run these samples and develop MicroPython applications for the XBee. http://cms.digi.com/resources/documentation/digidocs/90002219/#container/cont_pycharm.htm . Running this sample using our PyCharm plugin will automatically use the correct version of |
Thanks for the quick response.
Earlier I installed the PyCharm plugin & PyCharm and got the exact same error message, even using the PyCharm example project. I down-graded the XBee firmware from 11415 to 11410 and everything started working in PyCharm. Why do I have to do this?
Thanks,
From: Mike Wadsten [mailto:[email protected]]
Sent: Friday, May 29, 2020 4:09 PM
To: digidotcom/xbee-micropython <[email protected]>
Cc: Steve O'Connell <[email protected]>; Mention <[email protected]>
Subject: Re: [digidotcom/xbee-micropython] aws_publish IPPROTO_SEC type error (#42)
Hi @StevenSOConnell<https://github.com/StevenSOConnell> ,
Based on that error message, it looks like you might not be using the umqtt library from this repository (https://github.com/digidotcom/xbee-micropython/tree/master/lib/umqtt). The error coming from line 61 is a sign you are using the umqtt library from micropython-lib: https://github.com/micropython/micropython-lib/blob/master/umqtt.simple/umqtt/simple.py#L61
We would recommend using the Digi XBee MicroPython PyCharm Plugin to run these samples and develop MicroPython applications for the XBee. http://cms.digi.com/resources/documentation/digidocs/90002219/#container/cont_pycharm.htm . Running this sample using our PyCharm plugin will automatically use the correct version of umqtt for the XBee.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#42 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGWBWL43GKERHLSDM7RBUTTRUAI7NANCNFSM4NOGVFBA>.
|
@StevenSOConnell What if you use the 11413 firmware? Also try formatting the XBee filesystem and retesting on 11415. It's possible the |
I downgraded to 11412 and got it to work.
I didn’t try 11413 yet.
From: Mike Wadsten [mailto:[email protected]]
Sent: Friday, May 29, 2020 5:31 PM
To: digidotcom/xbee-micropython <[email protected]>
Cc: Steve O'Connell <[email protected]>; Mention <[email protected]>
Subject: Re: [digidotcom/xbee-micropython] aws_publish IPPROTO_SEC type error (#42)
@StevenSOConnell<https://github.com/StevenSOConnell> What if you use the 11413 firmware?
Also try formatting the XBee filesystem and retesting on 11415. It's possible the micropython-lib umqtt library was still there and was used when you tried it in PyCharm the second time.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#42 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGWBWL4WXAG5ATJJAOJN76LRUASQPANCNFSM4NOGVFBA>.
|
Using the aws_publish example with umqtt installed on XBC KTE-M/NB-IoT modem firmware 11415 with L0.0.00.00.05.08 installed. When I run the example I get:
File "", line 58, in
File "", line 47, in publish_test
File "/flash/lib/umqtt/simple.py", line 61, in connect
TypeError: must use IPPROTO_SEC
What does this mean? MicroPython version 3.4.0.
In the Digi MicroPython Programming Guide PDF page 135 it says:
Does this mean this example will not run on my setup using Python 3?
The text was updated successfully, but these errors were encountered: