MKRWAN - parsePacket()

Description

Checks for the presence of a LoRaWAN packet, and reports the size. parsePacket() must be called before reading the buffer with modem.read().

Syntax

modem.parsePacket()

Parameters

None

Returns

int: the size of a received LoRaWAN packet