Skip to content

Commit

Permalink
small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus K Wilting committed Jul 19, 2020
1 parent 6b785fe commit 48cdb06
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions include/mqttclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

#include "globals.h"
#include "rcommand.h"
#include <ETH.h>
#include <MQTT.h>
#include <ETH.h>

#define MQTT_INTOPIC "paxcounter/in"
#define MQTT_OUTTOPIC "paxcounter/out"
#define MQTT_ETHERNET 0 // set to 0 to run on Wifi
#define MQTT_INTOPIC "paxin"
#define MQTT_OUTTOPIC "paxout"
#define MQTT_PORT 1883
#define MQTT_SERVER "broker.shiftr.io"
//#define MQTT_CLIENTNAME "arduino"
Expand Down
9 changes: 4 additions & 5 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
;halfile = ttgov21new.h
;halfile = ttgofox.h
;halfile = ttgobeam.h
;halfile = ttgobeam10.h
halfile = ttgobeam10.h
;halfile = fipy.h
;halfile = lopy.h
;halfile = lopy4.h
Expand All @@ -33,7 +33,7 @@
;halfile = tinypicomatrix.h
;halfile = m5core.h
;halfile = m5fire.h
halfile = olimexpoeiso.h
;halfile = olimexpoeiso.h

[platformio]
; upload firmware to board with usb cable
Expand Down Expand Up @@ -61,8 +61,7 @@ display_library = ; set by build.py and taken from hal file
lib_deps_lora =
MCCI LoRaWAN LMIC [email protected] ; MCCI LMIC by Terrill Moore
lib_deps_display =
;OneBitDisplay@>1.4.0
https://github.com/bitbank2/OneBitDisplay.git
[email protected]
[email protected]
[email protected]
TFT_eSPI@>=2.2.8
Expand All @@ -73,7 +72,7 @@ lib_deps_rgbled =
lib_deps_gps =
1655@>=1.0.2 ; #1655 TinyGPSPlus by Mikal Hart
lib_deps_sensors =
Adafruit Unified Sensor@>=1.1.3
Adafruit Unified Sensor@>=1.1.4
Adafruit BME280 Library@>=2.0.2
Adafruit BMP085 Library@>=1.1.0
BSEC Software [email protected]
Expand Down
1 change: 1 addition & 0 deletions src/lorawan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ const char *getCrName(rps_t rps) {

#if (VERBOSE)
// decode LORAWAN MAC message
// see https://github.com/mcci-catena/arduino-lmic/blob/master/doc/LoRaWAN-at-a-glance.pdf
void mac_decode(const uint8_t cmd[], const uint8_t cmdlen, bool is_down) {

if (!cmdlen)
Expand Down
4 changes: 2 additions & 2 deletions src/mqttclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ esp_err_t mqtt_init(void) {
// setup network connection
WiFi.onEvent(NetworkEvent);
ETH.begin();
// WiFi.mode(WIFI_STA);
// WiFi.begin("SSID", "PW");
//WiFi.mode(WIFI_STA);
//WiFi.begin("SSID", "PASSWORD");

// setup mqtt client
mqttClient.begin(MQTT_SERVER, MQTT_PORT, netClient);
Expand Down

0 comments on commit 48cdb06

Please sign in to comment.