Development

Examples:

General / Frame

» Frame 05: Set Frame Size

Last edition: Nov 13th, 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'

» Frame 08: fragment frames

Last edition: Nov 13th, 2017 |

This example shows how to fragment an original binary frame. ASCII frames are not permitted. The resulting fragments are stored in frame.bufferFragment and the length of this buffer is frame.lengthFragment

» Frame 09: Encrypt fragments

Last edition: Nov 13th, 2017 |

This example shows how to fragment an original binary frame. Then shows how to encrypt each fragment. ASCII frames are not permitted. The resulting encrypted fragments are stored in frame.bufferFragment and the length of this buffer is frame.lengthFragment