GPy LTE-M Connection
-
@livius Thanks a lot
-
@livius Hi,
sorry, but I have the error message as in figure...
-
@francesco-gallo And please, I am a newbie :(.. And I would like learn as send data (e.g. Temperature) using LTE...
Is there an example code?
BR
-
@francesco-gallo
What is your firmware version?import os os.uname()you should have
1.17.0.b1 -
Ops...no...
-
@francesco-gallo
update device because docs fallow firmware and in 1.17 there was big change in LTE
https://forum.pycom.io/topic/2734/new-firmware-release-v1-17-0-b1-completely-new-lte-class -
@livius And please, I am a newbie :(.. And I would like learn as send data (e.g. Temperature) using LTE...
Is there an example code?
-
@francesco-gallo said in GPy LTE-M Connection:
Is there an example code?
example of what? Updating firmware?
after this step we can go next :) -
@livius Thanks...
The update is done...and now is ok..My question is about an example code regards the use of LTE to send temperature value to online service, or send the temperature value to smartphone...
BR
-
@francesco-gallo
First question is - do you have succesfully connected to LTE CAT M1?
If yes, which provider do you use and in which location (country)For sensors you can use any code sample existed for e.g. wifi
only difference is start point (connection to the network)
next steps are the same create socket and send data
you can use e.g. urequest
https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.pye.g.
import urequests res = urequests.post('your_service_url', json={'MyTemerarureSensorName': str(temp)}) res.close() if (res.status_code - 200) < 100: print("post ok:" + str(temp) + " C") else: print('some error') -
@livius Regards first question: i used the code here: https://docs.pycom.io/chapter/firmwareapi/pycom/network/lte/cat-m1.html...
But I did not have any results...The country is Italy and I have the tim sim..
BR
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login