Skip to content

LoRa: Transmit () frame to port ()

Jaume Olivé Petrus edited this page Oct 29, 2017 · 1 revision

This block is a LoRa block that transmit a LoRa frame to the network. The frame is sent to an specified port and payload. Before using this block you must configure LoRa.

The payload is a hexadecimal string. A hexadecimal string is a representation of a serie of bytes in text format, in which every byte is converted to it's hexadecimal representation in text. For example, the integer value 127 are represented by the "7F" string.

To minimize the time on air, the block converts the hexadecimal string to a byte representation and transmit this bytes.

To avoid working with bytes from blocks, we provide the, the the "Pack hex string with (), with(), ..." block which encodes a series of values into a hexadecimal string.

Shape

Example

In this example the ambient temperature from a DHT11 sensor is transmitted to the LoRa network.

Run this example in The Whitecat IDE.

Clone this wiki locally