use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
mbed-connector-interface/mbedConnectorInterface.h@33:1d0b855df5a5, 2016-06-14 (annotated)
- Committer:
- ansond
- Date:
- Tue Jun 14 19:29:30 2016 +0000
- Revision:
- 33:1d0b855df5a5
- Parent:
- 0:1f1f55e73248
- Child:
- 49:c603a22495bb
updated and unified headers
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:1f1f55e73248 | 1 | /** |
ansond | 0:1f1f55e73248 | 2 | * @file mbedConnectorInterface.h |
ansond | 0:1f1f55e73248 | 3 | * @brief mbed Connector Inteface configuration header file |
ansond | 0:1f1f55e73248 | 4 | * @author Doug Anson |
ansond | 0:1f1f55e73248 | 5 | * @version 1.0 |
ansond | 0:1f1f55e73248 | 6 | * @see |
ansond | 0:1f1f55e73248 | 7 | * |
ansond | 0:1f1f55e73248 | 8 | * Copyright (c) 2014 |
ansond | 0:1f1f55e73248 | 9 | * |
ansond | 0:1f1f55e73248 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 0:1f1f55e73248 | 11 | * you may not use this file except in compliance with the License. |
ansond | 0:1f1f55e73248 | 12 | * You may obtain a copy of the License at |
ansond | 0:1f1f55e73248 | 13 | * |
ansond | 0:1f1f55e73248 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 0:1f1f55e73248 | 15 | * |
ansond | 0:1f1f55e73248 | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 0:1f1f55e73248 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 0:1f1f55e73248 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 0:1f1f55e73248 | 19 | * See the License for the specific language governing permissions and |
ansond | 0:1f1f55e73248 | 20 | * limitations under the License. |
ansond | 0:1f1f55e73248 | 21 | */ |
ansond | 0:1f1f55e73248 | 22 | |
ansond | 0:1f1f55e73248 | 23 | #ifndef __MBED_CONNECTOR_INTERFACE_H__ |
ansond | 0:1f1f55e73248 | 24 | #define __MBED_CONNECTOR_INTERFACE_H__ |
ansond | 0:1f1f55e73248 | 25 | |
ansond | 0:1f1f55e73248 | 26 | // Include specific configuration details |
ansond | 0:1f1f55e73248 | 27 | #include "mbed-connector-interface/configuration.h" |
ansond | 0:1f1f55e73248 | 28 | |
ansond | 0:1f1f55e73248 | 29 | /************** DEFAULT CONFIGURATION PARAMETERS ************************/ |
ansond | 0:1f1f55e73248 | 30 | |
ansond | 0:1f1f55e73248 | 31 | // mbed-client Configuration |
ansond | 0:1f1f55e73248 | 32 | #define REG_UPDATE_PERIOD_MS 25000 // (in ms) - 25 seconds (re-registration update period) |
ansond | 0:1f1f55e73248 | 33 | #define OBS_PERIOD_MS 20000 // (in ms) - 20 seconds between observations.. |
ansond | 0:1f1f55e73248 | 34 | |
ansond | 0:1f1f55e73248 | 35 | // mbed-client endpoint lifetime |
ansond | 0:1f1f55e73248 | 36 | #define REG_LIFETIME_SEC 600 // Lifetime of the endpoint in seconds |
ansond | 0:1f1f55e73248 | 37 | |
ansond | 33:1d0b855df5a5 | 38 | // Maximum CoAP URL length |
ansond | 33:1d0b855df5a5 | 39 | #define MAX_CONN_URL_LENGTH 256 // Maximum Connection URL length |
ansond | 0:1f1f55e73248 | 40 | |
ansond | 0:1f1f55e73248 | 41 | // 6LowPAN Configuration |
ansond | 0:1f1f55e73248 | 42 | #define NODE_MAC_ADDRESS_LENGTH 8 |
ansond | 0:1f1f55e73248 | 43 | #define NODE_MAC_ADDRESS {0x00,0x00,0x06,0x02,0x00,0x00,0x36,0x18} |
ansond | 0:1f1f55e73248 | 44 | #define NODE_CHANNEL_LIST 0x07FFF800 // All channels |
ansond | 0:1f1f55e73248 | 45 | |
ansond | 0:1f1f55e73248 | 46 | // DynamicResource Configuration |
ansond | 33:1d0b855df5a5 | 47 | #define MAX_VALUE_BUFFER_LENGTH 256 // largest "value" a dynamic resource may assume as a string |
ansond | 0:1f1f55e73248 | 48 | |
ansond | 0:1f1f55e73248 | 49 | // Logger buffer size |
ansond | 0:1f1f55e73248 | 50 | #define LOGGER_BUFFER_LENGTH 300 // largest single print of a given debug line |
ansond | 0:1f1f55e73248 | 51 | |
ansond | 0:1f1f55e73248 | 52 | // 802.15.4 Network ID and RF channel defaults |
ansond | 0:1f1f55e73248 | 53 | #define MESH_NETWORK_ID_LENGTH 32 |
ansond | 0:1f1f55e73248 | 54 | #define MESH_DEF_NETWORK_ID "Network000000000" |
ansond | 0:1f1f55e73248 | 55 | #define MESH_DEF_RF_CHANNEL 11 |
ansond | 0:1f1f55e73248 | 56 | |
ansond | 0:1f1f55e73248 | 57 | // WiFi Configuration |
ansond | 0:1f1f55e73248 | 58 | #define WIFI_SSID_LENGTH 128 |
ansond | 0:1f1f55e73248 | 59 | #define WIFI_DEFAULT_SSID "changeme" |
ansond | 0:1f1f55e73248 | 60 | #define WIFI_AUTH_KEY_LENGTH 128 |
ansond | 0:1f1f55e73248 | 61 | #define WIFI_DEFAULT_AUTH_KEY "changeme" |
ansond | 0:1f1f55e73248 | 62 | |
ansond | 0:1f1f55e73248 | 63 | /************** DEFAULT CONFIGURATION PARAMETERS ************************/ |
ansond | 0:1f1f55e73248 | 64 | |
ansond | 0:1f1f55e73248 | 65 | #endif // __MBED_CONNECTOR_INTERFACE___ |
ansond | 0:1f1f55e73248 | 66 |