
-2- v7.1
Index
Document version: v7.1 - 02/2017
© Libelium Comunicaciones Distribuidas S.L.
INDEX
1. Introduction......................................................................................................................................... 4
1.1. The standard ..................................................................................................................................................................................4
2. Hardware ............................................................................................................................................. 6
2.1. Electrical features.........................................................................................................................................................................6
2.2. Connection diagram...................................................................................................................................................................6
2.3. Consumption.................................................................................................................................................................................8
2.4. Connector.......................................................................................................................................................................................8
3. Dual radio with Expansion Board..................................................................................................... 10
3.1. Expansion Radio Board ........................................................................................................................................................... 10
4. RS-232 on Plug & Sense! ................................................................................................................... 12
5. Applications ....................................................................................................................................... 14
6. Libelium’s library ............................................................................................................................... 16
7. Library functions ............................................................................................................................... 17
7.1. Library constructor...................................................................................................................................................................17
7.2. Switching the module on.......................................................................................................................................................17
7.3. Switching the module o ......................................................................................................................................................17
7.4. Conguring communication speed................................................................................................................................... 18
7.5. Conguring the number of stop bits.................................................................................................................................18
7.6. Conguring the parity bit ...................................................................................................................................................... 19
7.7. Sending data...............................................................................................................................................................................20
7.7.1. Sending a char............................................................................................................................................................20
7.7.2. Sending an integer ...................................................................................................................................................20
7.7.3. Sending a string.........................................................................................................................................................20
7.7.4. Sending with base .....................................................................................................................................................21
7.7.5. Sending a long ............................................................................................................................................................21
7.8. Receiving data............................................................................................................................................................................22
7.9. Knowing when new data is available ................................................................................................................................23
7.10. Flushing buer ........................................................................................................................................................................23
8. Certications...................................................................................................................................... 24
9. Code examples and extended information..................................................................................... 25