XDK API  3.6.0
Documentation
Macros | Functions
AppController.h File Reference

Configuration header for the AppController.c file. More...

#include "XDK_Utils.h"
+ Include dependency graph for AppController.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define APP_LWM2M_CLIENT_PORT   UINT32_C(12345)
 
#define APP_LWM2M_DTLS_PSK_IDENTITY   "XDK110_0"
 
#define APP_LWM2M_DTLS_PSK_KEY   "Leshan"
 
#define APP_LWM2M_DTLS_PSK_KEY_LENGTH   strlen(APP_LWM2M_DTLS_PSK_KEY)
 
#define APP_LWM2M_END_POINT_NAME   "XDK110_UNSECURE"
 
#define APP_LWM2M_LIFETIME_IN_SECONDS   UINT32_C(240)
 
#define APP_LWM2M_SECURITY_ENABLE   0
 
#define APP_LWM2M_SERVER_PORT   UINT32_C(5683)
 
#define APP_LWM2M_SERVER_URL   "leshan.eclipse.org"
 
#define SNTP_SERVER_PORT   UINT16_C(123)
 
#define SNTP_SERVER_URL   "0.de.pool.ntp.org"
 
#define WLAN_DNS_ADDR   XDK_NETWORK_IPV4(0, 0, 0, 0)
 
#define WLAN_GW_ADDR   XDK_NETWORK_IPV4(0, 0, 0, 0)
 
#define WLAN_IP_ADDR   XDK_NETWORK_IPV4(0, 0, 0, 0)
 
#define WLAN_MASK   XDK_NETWORK_IPV4(0, 0, 0, 0)
 
#define WLAN_PSK   "YourWifiPassword"
 
#define WLAN_SSID   "YourWifiNetwork"
 
#define WLAN_STATIC_IP   false
 

Functions

void AppController_Init (void *cmdProcessorHandle, uint32_t param2)
 Gives control to the Application controller. More...
 

Macro Definition Documentation

#define APP_LWM2M_CLIENT_PORT   UINT32_C(12345)

APP_LWM2M_CLIENT_PORT is the client port number for LWM2M communication.

#define APP_LWM2M_DTLS_PSK_IDENTITY   "XDK110_0"

APP_LWM2M_DTLS_PSK_IDENTITY is the Pre-Shared Key - identity value. Unused if APP_LWM2M_SECURITY_ENABLE is false / 0.

#define APP_LWM2M_DTLS_PSK_KEY   "Leshan"

APP_LWM2M_DTLS_PSK_KEY is the Pre-Shared Key - key value. Unused if APP_LWM2M_SECURITY_ENABLE is false / 0. Please note that in this example, by default http://leshan.eclipse.org is configured for which the value in the server must be the hexadecimal equivalent of the below string.

#define APP_LWM2M_DTLS_PSK_KEY_LENGTH   strlen(APP_LWM2M_DTLS_PSK_KEY)

APP_LWM2M_DTLS_PSK_KEY_LENGTH is the Pre-Shared Key - key length value. Unused if APP_LWM2M_SECURITY_ENABLE is false / 0. Please note that in-case a NULL is used in the APP_LWM2M_DTLS_PSK_KEY value, user needs to update the below.

#define APP_LWM2M_END_POINT_NAME   "XDK110_UNSECURE"

APP_LWM2M_END_POINT_NAME is the device name.

#define APP_LWM2M_LIFETIME_IN_SECONDS   UINT32_C(240)

< APP_LWM2M_LIFETIME_IN_SECONDS is the LWM2M device lifetime in seconds

#define APP_LWM2M_SECURITY_ENABLE   0
#define APP_LWM2M_SERVER_PORT   UINT32_C(5683)

APP_LWM2M_CLIENT_PORT is the server port number for LWM2M communication. By default, http://leshan.eclipse.org server standard CoAP port number is configured.

#define APP_LWM2M_SERVER_URL   "leshan.eclipse.org"

APP_LWM2M_SERVER_URL is the server URL in string without the protocol (coap:// or coaps://) prefix and port suffix.

#define SNTP_SERVER_PORT   UINT16_C(123)

SNTP_SERVER_PORT is the SNTP server port number.

#define SNTP_SERVER_URL   "0.de.pool.ntp.org"

SNTP_SERVER_URL is the SNTP server URL.

#define WLAN_DNS_ADDR   XDK_NETWORK_IPV4(0, 0, 0, 0)

WLAN_DNS_ADDR is the WIFI router WPA/WPA2 static IPv4 DNS address (unused if WLAN_STATIC_IP is false) Make sure to update the WLAN_DNS_ADDR constant according to your required WIFI network, if WLAN_STATIC_IP is "true".

#define WLAN_GW_ADDR   XDK_NETWORK_IPV4(0, 0, 0, 0)

WLAN_GW_ADDR is the WIFI router WPA/WPA2 static IPv4 gateway address (unused if WLAN_STATIC_IP is false) Make sure to update the WLAN_GW_ADDR constant according to your required WIFI network, if WLAN_STATIC_IP is "true".

#define WLAN_IP_ADDR   XDK_NETWORK_IPV4(0, 0, 0, 0)

WLAN_IP_ADDR is the WIFI router WPA/WPA2 static IPv4 IP address (unused if WLAN_STATIC_IP is false) Make sure to update the WLAN_IP_ADDR constant according to your required WIFI network, if WLAN_STATIC_IP is "true".

#define WLAN_MASK   XDK_NETWORK_IPV4(0, 0, 0, 0)

WLAN_MASK is the WIFI router WPA/WPA2 static IPv4 mask address (unused if WLAN_STATIC_IP is false) Make sure to update the WLAN_MASK constant according to your required WIFI network, if WLAN_STATIC_IP is "true".

#define WLAN_PSK   "YourWifiPassword"

WLAN_PSK is the WIFI router WPA/WPA2 password used at the Wifi network connection. Make sure to update the WLAN_PSK constant according to your router password.

#define WLAN_SSID   "YourWifiNetwork"

WLAN_SSID is the WIFI network name where user wants connect the XDK device. Make sure to update the WLAN_PSK constant according to your required WIFI network.

#define WLAN_STATIC_IP   false

WLAN_STATIC_IP is a boolean. If "true" then static IP will be assigned and if "false" then DHCP is used.


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:39 by doxygen 1.8.8