observe updates

Fork of mbedConnectorInterface by Doug Anson

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Options.cpp Source File

Options.cpp

Go to the documentation of this file.
00001 /**
00002  * @file    Options.cpp
00003  * @brief   mbed CoAP Options (immutable OptionsBuilder instance) class implementation
00004  * @author  Doug Anson/Chris Paola
00005  * @version 1.0
00006  * @see
00007  *
00008  * Copyright (c) 2014
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License");
00011  * you may not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  *     http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS,
00018  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022 
00023 #include "Options.h"
00024 
00025 namespace Connector {
00026 
00027 // default constructor
00028 Options::Options()
00029 {
00030 }
00031 
00032 // copy constructor
00033 Options::Options(const Options &opt)
00034 {
00035 }
00036 
00037 // destructors
00038 Options::~Options()
00039 {
00040 }
00041 
00042 // lifetime pointer
00043 char *Options::getLifetime()
00044 {
00045     return this->m_lifetime;
00046 }
00047 
00048 // NSP domain
00049 string Options::getDomain()
00050 {
00051     return this->m_domain;
00052 }
00053 
00054 // Endpoint name
00055 string Options::getEndpointNodename()
00056 {
00057     return this->m_node_name;
00058 }
00059 
00060 // Endpoint Type
00061 string Options::getEndpointType()
00062 {
00063     return this->m_endpoint_type;
00064 }
00065 
00066 // NSP Port number
00067 int Options::getNSPPortNumber()
00068 {
00069     return this->m_nsp_port;
00070 }
00071 
00072 // NODE Radio Channel List
00073 uint32_t Options::getRadioChannelList()
00074 {
00075     return this->m_channel_list;
00076 }
00077 
00078 // NSP Read update period
00079 int Options::getReadUpdatePeriod()
00080 {
00081     return this->m_rd_update_period;
00082 }
00083 
00084 // NSP Address
00085 uint8_t *Options::getNSPAddress()
00086 {
00087     return this->m_nsp_address;
00088 }
00089 
00090 // NODE MAC Address
00091 uint8_t *Options::getMACAddress()
00092 {
00093     return this->m_mac_address;
00094 }
00095 
00096 // Static Resources
00097 StaticResourcesList *Options::getStaticResourceList()
00098 {
00099     return &this->m_static_resources;
00100 }
00101 
00102 // Dynamic Resources
00103 DynamicResourcesList *Options::getDynamicResourceList()
00104 {
00105     return &this->m_dynamic_resources;
00106 }
00107 
00108 // WiFi SSID
00109 string Options::getWiFiSSID() {
00110     return this->m_wifi_ssid;
00111 }
00112 
00113 // WiFi AuthType
00114 WiFiAuthTypes Options::getWiFiAuthType() {
00115     return this->m_wifi_auth_type;
00116 }
00117 
00118 // WiFi AuthKey
00119 string Options::getWiFiAuthKey() {
00120     return this->m_wifi_auth_key;
00121 }
00122 
00123 // 802.15.4 Network ID
00124 string Options::getNetworkID() {
00125     return this->m_network_id;
00126 }
00127 
00128 // 802.15.4 Network ID
00129 uint8_t Options::getRadioChannel() {
00130     return this->m_channel;
00131 }
00132 
00133 } // namespace Connector