Development

Examples:

General / Frame

» Frame 05: Set Frame Size

Last edition: Jan 10th, 2017 |

This example shows how to set the maximum frame size automatically by giving the following parameters: XBee protocol, addressing, link encryption mode, AES encryption mode. NOTE: It is only useful when using XBee modules

» Frame 06: Set Frame Type

Last edition: Jan 10th, 2017 |

This example shows how to set the frame Type. This field is included inside the frame's header in order to distinguish between different sort of frames

» Frame 07: Encrypted Frames

Last edition: Jan 10th, 2017 |

This example shows how to encrypt a Waspmote Frame using the Encryption libraries. In this example AES-128 is used. But AES-192 and AES-256 are available too. Regarding the Block Cipher mode, only ECB is supported. And regarding the padding mode: only ZEROS padding is supported. The result for encryption function is stored in 'frame.buffer' and 'frame.length'