Pycom WiPy 3.0 Manual page 325

Hide thumbs Also See for WiPy 3.0:
Table of Contents

Advertisement

5.2.2.4 LoRa
Remove the LoRaWAN state (joined status, network keys, packet counters, etc) from non-
volatile memory.
lora.nvram_erase()
Constants
LoRa.LORA LoRa.LORAWAN LoRa stack mode
LoRa.OTAA LoRa.ABP LoRaWAN join procedure
LoRa.ALWAYS_ON LoRa.TX_ONLY LoRa.SLEEP Raw LoRa power mode
LoRa.BW_125KHZ LoRa.BW_250KHZ LoRa.BW_500KHZ Raw LoRa bandwidth
LoRa.CODING_4_5 LoRa.CODING_4_6 LoRa.CODING_4_7 LoRa.CODING_4_8 Raw
LoRa coding rate
LoRa.RX_PACKET_EVENT LoRa.TX_PACKET_EVENT LoRa.TX_FAILED_EVENT
Callback trigger types (may be ORed)
LoRa.CLASS_A LoRa.CLASS_C LoRaWAN device class
LoRa.AS923 LoRa.AU915 LoRa.EU868 LoRa.US915 LoRaWAN regions
Working with LoRa and LoRaWAN Sockets
LoRa sockets are created in the following way:
import socket
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
And they must be created after initialising the LoRa network card.
LoRa sockets support the following standard methods from the socket module:
socket.close()
Usage:
s.close()
socket.bind(port_number)
Usage:
325

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WiPy 3.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

SipyGpyLopyLopy4Fipy

Table of Contents