AF_LORAWAN



  • I don't seem to have socket modules AF_LORAWAN, is this available in another firmware release?

    s = socket.socket(socket.AF_LORAWAN, socket.SOCK_RAW)
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    AttributeError: 'module' object has no attribute 'AF_LORAWAN'

    s = socket.socket(socket.
    name socket getaddrinfo error
    timeout AF_INET AF_LORA SOCK_STREAM
    SOCK_DGRAM SOCK_RAW IPPROTO_TCP IPPROTO_UDP
    PROTO_LORA PROTO_LORAWAN SOL_SOCKET SOL_LORA
    SO_REUSEADDR SO_CONFIRMED

    s = socket.socket(socket.

    thanks

    mctouch



  • Hi mctouch,

    Sorry, there was a typo in the example, LoRaWAN sockets are also created with:

    s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
    

    The example in the docs should be correct now.

    Cheers,
    Daniel


Log in to reply
 

Pycom on Twitter