#include <WaspXBee900HP.h>
WaspXBee900HP
must be created. This object, called xbee900HP
, is created inside the Waspmote XBee 900HP library and it is public to all libraries. It is used through the guide to show how the Waspmote XBee 900HP library works.xbee900HP.sourceMacHigh[0-3]
→ stores the 32 upper bits of MAC addressxbee900HP.sourceMacLow [0-3]
→ stores the 32 lower bits of MAC addressxbee900HP.getOwnMacLow()
, the exposed variable xbee900HP.sourceMacLow
will be filled with the appropriate values. Before calling the function, the exposed variable is created but it is empty.error_AT
: it stores if some error occurred during the execution of an AT command functionerror_RX
: it stores if some error occurred during the reception of a packeterror_TX
: it stores if some error occurred during the transmission of a packetwriteValues()
function.xbee900HP.commandAT[0-99]
→ stores the response given by the module up to 100 bytesMAX_DATA
: (default value is 300) it defines the maximum available data size for a packet. This constant must be equal or bigger than the data is sent on each packet. This size should not be bigger than 1500MAX_PARSE
: (default value is 300) it defines the maximum data that is parsed in each call to parse_message()
. If more data are received, they will be stored in the UART buffer until the next call to treatData()
. However, if the UART buffer is full, the following data will be written on the buffer, so be careful with this matterMAX_BROTHERS
: (default value is 5) it defines the maximum number of brothers that can be stored