From 3261414fcf0b6461d44af96b37778d95383ab4c2 Mon Sep 17 00:00:00 2001 From: hogthrob Date: Fri, 26 Jul 2019 07:38:06 +0200 Subject: [PATCH] uext_wifi compiles again (#41) --- src/uext/uext_wifi.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/uext/uext_wifi.cpp b/src/uext/uext_wifi.cpp index 5469a3b..83bbd5b 100644 --- a/src/uext/uext_wifi.cpp +++ b/src/uext/uext_wifi.cpp @@ -6,6 +6,7 @@ #ifdef WIFI_ENABLED +#include "load.h" #include "thingset.h" #include @@ -32,7 +33,7 @@ enum wifi_states { extern load_output_t load; extern ThingSet ts; -extern const int PUB_CHANNEL_EMONCMS; +extern const int pub_channel_emoncms; int wifi_check_ap_connected() { @@ -115,7 +116,7 @@ int wifi_send_emoncms_data() // overwrite two publication message start bytes "# " with correct URL // content again to avoid strcpy int ts_pos = strlen(url) - 2; - int ts_len = ts.pub_msg_json(url + ts_pos, sizeof(url) - ts_pos - 1, PUB_CHANNEL_EMONCMS); + int ts_len = ts.pub_msg_json(url + ts_pos, sizeof(url) - ts_pos - 1, pub_channel_emoncms); url[ts_pos] = 'n'; url[ts_pos+1] = '='; url[ts_pos+ts_len] = '\0'; // ThingSet does not null-terminate