Error when send data on LORA ?

  • Im trying to learn how this works.... I dont get it still...

    It wont work, I was thinking it has to do with the recv part,
    maybe it has not the time to handle the bytes that are sent to the lopy.


    from network import LoRa
    import socket
    import time
    import pycom
    import os
    import gc

    #os.getcwd() # Check where in the filesystem you are

    for cycles in range(1): # stop after 1 cycles

    lora = LoRa(mode=LoRa.LORA,tx_power = 14, sf = 7, frequency=863000000)
    s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)


    i = 0
    failed = 0
    counter_sent = 0
    counter_received = 0


  • @Haruko-viet-nam What do you expect this do do? You probably didn't copy the full code, this code doesn't do anything at all.

    Note that to quote code you should use backticks rather than quotes

    ``` not '''

    Or click on one of the </> buttons in the toolbar.

Log in to reply

Pycom on Twitter