added max-age and content-format
Fork of mbedConnectorInterface by
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() {