Skip to content

Commit f88108c

Browse files
neilh20.gitkneilh20.gitk
authored andcommitted
move test configuration paramters to config.h
1 parent 0884667 commit f88108c

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

WatsonIoT/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.pio
2+
.vscode

WatsonIoT/src/config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// --------------------------------------------------------------------------------------------
2+
// UPDATE CONFIGURATION TO MATCH YOUR ENVIRONMENT
3+
// --------------------------------------------------------------------------------------------
4+
//#define OPENEEW_ACTIVATION_ENDPOINT "https://openeew-devicemgmt.mybluemix.net/activation?ver=1"
5+
#define OPENEEW_ACTIVATION_ENDPOINT "https://device-mgmt.openeew.com/activation?ver=1"
6+
// VERSION uses convention semver.org
7+
// 1.3.9 < 1.4.0 < 1.4.1-alpha1 < 1.4.1-alpha2 < 1.4.1
8+
#define OPENEEW_FIRMWARE_VERSION "1.4.0"
9+
10+
// Run this firmware with a MQTT Broker on a local subnet
11+
// One way of settin up https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-18-04
12+
// Comment this Define to send data to local Cloud
13+
//#define MQTT_LOCALBROKER "192.168.1.101"
14+
15+
116
#define OPENEEW_SAMPLE_RATE_125 false
217
#define OPENEEW_SAMPLE_RATE_31_25 true
318

WatsonIoT/src/main.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,7 @@
1515
#include "semver.h" // from https://github.com/h2non/semver.c
1616
#include <cppQueue.h>
1717

18-
// --------------------------------------------------------------------------------------------
19-
// UPDATE CONFIGURATION TO MATCH YOUR ENVIRONMENT
20-
// --------------------------------------------------------------------------------------------
21-
//#define OPENEEW_ACTIVATION_ENDPOINT "https://openeew-devicemgmt.mybluemix.net/activation?ver=1"
22-
#define OPENEEW_ACTIVATION_ENDPOINT "https://device-mgmt.openeew.com/activation?ver=1"
23-
#define OPENEEW_FIRMWARE_VERSION "1.4.0"
2418

25-
// Run this firmware with a MQTT Broker on a local subnet
26-
// Comment this Define to send data to the Cloud
27-
//#define MQTT_LOCALBROKER "192.168.1.101"
2819

2920
// Watson IoT connection details
3021
static char MQTT_HOST[48]; // ORGID.messaging.internetofthings.ibmcloud.com

0 commit comments

Comments
 (0)