Need help
-
Hello
I am blocked with my code, I cannot connect to my LoRA [main.py
-
try: if(message_info > 0): # CONNEXION LORA ICI # message_info = 0 # Date = str(utime.mktime(utime.localtime())) # global_message[Date] = current_message # print("Current : " + str(global_message)) except Exception as e: print("Update current message exception : " + str(e)) time.sleep(1)
I can't complete this part
-
@windwhite
Sorry but you still do not provide any details.
Please put you code or part of code, tell with which part do you have any problems.
Without this you do not help us to help you, we even do not know what problem do you have, we can only guess as above @robert-hh
-
@livius I had some help for the start of my code, but in the main file I am missing the information on the connection on my private network, I am also trying to reduce the electricity consumption of my project
-
@windwhite
probably noone will follow links on any forum ;-)
pls describe your problem with details here.
-
@Gijs loraconnection.py
I have a private Lorawan network
here is a link to my entire project
https://we.tl/t-FqEJtcIQZL
-
When using LoRa (Im guessing you mean LoRaWAN, but not sure), make sure the keys are correct (dev_eui, app_eui etc.). Next, make sure there is active coverage in your area by either your own LoRaWAN gateway or a gateway provided in the area by someone else.
With the limited information you provide its hard to help you. I would also suggest to use a more informational topic title about the actual issue you're experiencing. In your attached code I could not find any reference to the LoRa module. Perhaps have a look at the documentation here: https://docs.pycom.io/tutorials/networks/lora/ on how to set up a lora connection.
-
my problem is establishing the connection on my LoRa network, currently my project works locally, I want to send the data in lora,
but also reduce electricity consumption
-
@windwhite You can try a safe boot by either:
- push Ctrl-F in the REPL by USB or Telnet
- Connect P12 to 3.3V and push reset
Safe boot will start the board without running boot.py or main.py. Then you can rename main.py. If you have a WiFi connection established, you can also connect with ftp and rename main.py.