Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  test
Language: C/C++
Code:
#include mbed.h
/* Other includes */
/* Initializations */
//Set logging level, provides Time on Air for transmssions
mts::MTSLog::setLogLevel(mts::MTSLog::TRACE_LEVEL);
dot = mDot::getInstance(); //pointer to class providing internal functionality
/* Join Network */
dot->setTxDataRate(datarate); //configures node to use Date Rate "datarate" when
transmitting
uint8_t bytes;
payload = generateData(bytes); //generates data of 0-242 bytes
data = loadData();
dot->send(data); //sends 12-255 bytes to the gateway/network
server
/* Debug printing - Time On Air for transmission of data */
return 0;
Comments: