forked from iotlabopenmunich/iotlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h-dist
36 lines (29 loc) · 1.17 KB
/
config.h-dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* IoT-Lab: config.h-dist - configuration template
* copy this file to config.h and modify it to fit your needs
* -> check all FIXME comments carefully.
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
// unique device id as string
#define DEVICE_ID /* FIXME: DEVICE ID as STRING */
// WiFi connection configuration
#define WIFI_PASSWORD /* FIXME: WiFi PASSWORD as STRING */
#define WIFI_SSID /* FIXME: WiFi SSID as STRING */
// maximum number of tries during wifi connection setup
#define WIFI_MAX_TRIES 30
// delay in ms between checks during wifi connection setup
#define WIFI_DELAY_TRY 1000
// MQTT connection configuration
#define MQTT_HOST /* FIXME: HOSTNAME MQTT BROKER as STRING */
#define MQTT_PORT 1883
#define MQTT_USER ""
#define MQTT_PASSWORD ""
// The base topic. We will use two topics to communicate with
// the backend:
// * MQTT_TOPIC/<device-id>/order - to this topic the device publishes it's
// orders
// * MQTT_TOPIC/<device-id>/status - on this topic the backend publishes
// status updates
#define MQTT_TOPIC "iotlab2016/device"
#endif