mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.
Dependents: IoT_LED_demo ServoTest uWater_Project hackathon ... more
Diff: api/OptionsBuilder.cpp
- Revision:
- 19:e2cbaeeea509
- Parent:
- 15:8ada80242804
- Child:
- 42:20c375e74e8e
--- a/api/OptionsBuilder.cpp Wed Feb 18 19:40:13 2015 +0000 +++ b/api/OptionsBuilder.cpp Tue Feb 24 02:05:06 2015 +0000 @@ -168,6 +168,20 @@ return *this; } +// set 802.15.4 Network ID +OptionsBuilder &OptionsBuilder::setNetworkID(char *network_id) +{ + this->m_network_id = string(network_id); + return *this; +} + +// set 802.15.4 Radio Channel +OptionsBuilder &OptionsBuilder::setRadioChannel(int channel) +{ + this->m_channel = (uint8_t)channel; + return *this; +} + // build out our immutable self Options *OptionsBuilder::build() {