Customize an example

All examples require you to provide the device's MAC address and your Device Cloud Account’s Vendor ID and URL. To modify this information, open the connector_config.h header file (located in the project’s Sources folder) and add the following macros with your device and account information:

MQX Projects:

#define CONNECTOR_MAC_ADDRESS                    {0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF}

µC/OS Projects :

#define CONNECTOR_MAC_ADDRESS                    "AA:BB:CC:DD:EE:FF"

Common:

#define CONNECTOR_VENDOR_ID                      0x00000000
#define CONNECTOR_CLOUD_URL                      "login.etherios.com"        

You may also want to modify the Device Type string that the application reports. To do so, modify the following macro with a different string:

#define CONNECTOR_DEVICE_TYPE                    "MyDeviceType"

For more information on locating these parameters, see the Configuration chapter for µC/OS or MQX.