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_CONTROLLER_BLE_DEVICE_NAME   "XDK_UDP_BLE"
 
#define APP_CONTROLLER_BLE_END_ID   "end"
 
#define APP_CONTROLLER_BLE_END_PAYLOAD   "Transfer Terminated!"
 
#define APP_CONTROLLER_BLE_START_ID   "start"
 
#define APP_CONTROLLER_BLE_START_PAYLOAD   "X Y Z"
 
#define APP_CONTROLLER_TX_DELAY   UINT32_C(1000)
 
#define DEST_SERVER_IP   XDK_NETWORK_IPV4(0, 0, 0, 0)
 
#define DEST_SERVER_PORT   UINT16_C(0)
 
#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_CONTROLLER_BLE_DEVICE_NAME   "XDK_UDP_BLE"

APP_CONTROLLER_BLE_DEVICE_NAME is the BLE device name.

#define APP_CONTROLLER_BLE_END_ID   "end"

APP_CONTROLLER_BLE_END_ID is the part of the payload to be received from BLE central to stop streaming data via. BLE.

#define APP_CONTROLLER_BLE_END_PAYLOAD   "Transfer Terminated!"

APP_CONTROLLER_BLE_END_PAYLOAD is the last payload to be sent to the BLE central upon successful reception of APP_CONTROLLER_BLE_END_ID. Must not be more than 20 bytes.

#define APP_CONTROLLER_BLE_START_ID   "start"

APP_CONTROLLER_BLE_START_ID is the part of the payload to be received from BLE central to start streaming data via. BLE.

#define APP_CONTROLLER_BLE_START_PAYLOAD   "X Y Z"

APP_CONTROLLER_BLE_START_PAYLOAD is the first payload to be sent to the BLE central upon successful reception of APP_CONTROLLER_BLE_START_ID. Must not be more than 20 bytes.

#define APP_CONTROLLER_TX_DELAY   UINT32_C(1000)

APP_CONTROLLER_TX_DELAY is the packet transmit frequency in milli second over UDP & BLE.

#define DEST_SERVER_IP   XDK_NETWORK_IPV4(0, 0, 0, 0)

DEST_SERVER_IP is the destination server IP address of the web server we will send UDP payloads. If you want to test this example without setting up your own server, you can use publicly available services.

#define DEST_SERVER_PORT   UINT16_C(0)

DEST_SERVER_PORT is the UDP port to which we will send UDP payloads.

#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