Open geyseran opened 4 years ago
@geyseran it seems like the compiler is using a wrong version of the HashMap library. My assumption is based on the fact that the debugging indicates that Using library HashMap in folder: C:\Users\Home\Documents\Arduino\libraries\HashMap (legacy)
. Instead you should be using the version under C:\Users\Home\Documents\Arduino\meshquitto-master\meshquitto-master\meshquitto_gateway\mesh_gateway\libraries\HashMap\HashMap.h
.
Please try replacing the line #include "HashMap.h"
with #include "./libraries/HashMap/HashMap.h"
in both files.
I have also noticed a few other compilation errors on my end, which stem from the fact that the code in this repo was written a long time ago:
I will be making a commit soon which addresses the above issues.
@sglvladi Hey, I am working on your code ,after successfully uploading the code on the esp8266 (12-E) board , the MQTT gateway is not connecting with the mesh network.This error pops up in the serial monitor "Attempting MQTT connection...failed, rc=-2 try again in 5 seconds" please help me out.
@Arijeet96 The error you are experiencing is unrelated to this issue. The printout you are observing is not related to connecting to the mesh network; in fact the MQTT Gateway doesn't have anything to do with the Mesh network, it is the Mesh Gateway that deals with that. Instead, the quoted message is printed by the PubSubClient library when it is unable to connect to the MQTT Broker. Therefore I would suggest you double check that the broker details you have entered are correct.
@sglvladi
Please see the code below, where I am wrong.
`/=================================================================================== /
/ meshquitto_gateway/mqtt_gateway.ino /
/ ~~~~~~~~~~~~~~~~~~ /
/ Example implementation of a meshquitto mqtt gateway. /
/ /
/ Created by Lyudmil Vladimirov, Feb 2017 (Last update: Aug 2020) /
/ More info: https://github.com/sglvladi/meshquitto /
/ ================================================================================== /
// Message buffer size
// Definition of TX/RX and TX/RX_IRQ (interrupt) pins
//#define TX_FSM_ABORT 0 //#define TX_FSM_READY 1 //#define TX_FSM_ACK 2
// Software Serial instantiation SoftwareSerial swSer(RX, TX, false);
// Network settings const char ssid = "XYZ"; const char password = "1234567890";
// MQTT connect settings const char mqtt_server = "XYZ"; const char mqtt_username = "XYZ"; const char mqtt_password = "XYZ"; const char mqtt_client_id = "Mesquitto Gateway"; const char mqtt_will_topic = "/meshquitto-gateway/disconnected"; const char mqtt_will_payload = "1"; const int mqtt_will_qos = 1; const bool mqtt_will_retain = true;
// WiFi and MQTT client instantiation WiFiClientSecure espClient; PubSubClient client(espClient);
// Buffers to store messages
CustomList
// Timestamp to store last time a message was sent to Mesh long lastMsg = 0;
// Global flags used for control volatile bool _sending = false; // Flag set when sending to Mesh volatile bool _receiving = false; // Flag set when receiving from mesh bool _empty_mqtt_buffer_irq = false; // Flag set when
//String TX_FSM_STATE = TX_FSM_READY; //Ticker RX_Interrupt_Ticker; //void RX_check( void ){ // if(digitalRead(RX_IRQ)==LOW){ // RX_Interrupt_Ticker.detach(); // receiveFromMesh(); // } //}
/****/
/ Turns returned mac address into a readable string /
/~~~~~~~~~~~~~~/
String macToStr(const uint8_t mac)
/~~~~~~~~~~~~~~*/
{
String result;
String atom;
for (int i = 0; i < 6; ++i)
{
atom = String(mac[i], 16);
atom.toUpperCase();
if (atom.length() < 2)
{
result += String("0") + atom;
}
else
{
result += atom;
}
if (i < 5)
result += '-';
}
return result;
}
/****/
/****/
/ Reads and returns the device MAC adress as a String /
/~~~~~~~~~~~~~~/
String getMac()
/~~~~~~~~~~~~~~/
{
unsigned char mac[6];
WiFi.macAddress(mac);
return macToStr(mac);
}
/****/
/****/
/ Prints available heap memory to Serial /
/~~~~~~~~~~~~~~/
void printHeap()
{
/~~~~~~~~~~~~~~/
Serial.print("Free Heap: ");
Serial.println(ESP.getFreeHeap());
}
/~~~~~~~~~~~~~~/
/****/
/ Prints the number of queued messages to Serial /
/~~~~~~~~~~~~~~/
void printQueueSizes()
{
Serial.print("MQTT queue: ");
Serial.println(mqttMessageBuffer.size());
Serial.print("Mesh queue: ");
Serial.println(meshMessageBuffer.size());
}
/~~~~~~~~~~~~~~/
/****/
/ Computes CRC16 of given data, then appends it to data and returns /
/ the resulting string /
/~~~~~~~~~~~~~~/
String getCRCString(String data)
{
Crc16 crc;
byte data_buf = (unsigned char )data.c_str();
crc.clearCrc();
unsigned short value = crc.XModemCrc(data_buf, 0, data.length());
String crc_value = String(value, HEX);
while (crc_value.length() < 4)
{
crc_value = "0" + crc_value;
}
data += crc_value;
return data;
}
/~~~~~~~~~~~~~~/
/****/
/ Reads a string of data with it's CRC16 appended to the end, then /
/ computes a new CRC16 based on the raw data and returns true if /
/ the two CRC16 values match. /
/~~~~~~~~~~~~~~/
bool checkCRC(String dataPlusCRC)
{
Crc16 crc;
crc.clearCrc();
byte data[dataPlusCRC.length() - 4];
for (int i = 0; i < dataPlusCRC.length() - 4; i++)
{
data[i] = (byte)dataPlusCRC[i];
}
unsigned short crc_1 = strtoul(dataPlusCRC.substring(dataPlusCRC.length() - 4).c_str(), NULL, 16);
unsigned short crc_check = crc.XModemCrc(data, 0, dataPlusCRC.length() - 4);
if (crc_1 == crc_check)
{
return true;
}
return false;
}
/~~~~~~~~~~~~~~/
/*****/
/ Reads topic and payload of MQTT message and formats it as JSON string /
/~~~~~~~~~~~~~~~/
String jsonMqttMessage(String topic, String payload)
{
StaticJsonDocument<500> jsonDoc;
jsonDoc["topic"] = topic;
jsonDoc["payload"] = payload;
String json_msg;
serializeJson(jsonDoc, json_msg);
return json_msg;
}
/~~~~~~~~~~~~~~~/
/*****/
/ Reads topic and payload of MQTT message, formats it as JSON String /
/ and forwards it to Mesh gateway /
/~~~~~~~~~~~~~~~/
void sendToMesh(String topic, String payload)
{
_sending = true;
StaticJsonDocument<500> jsonDoc;
jsonDoc["topic"] = topic;
jsonDoc["payload"] = payload;
String json_msg;
serializeJson(jsonDoc, json_msg);
Serial.print("Forwarding message to Mesh GW");
for (int i = 0; i < json_msg.length(); i++)
{
Serial.print(".");
swSer.write(json_msg[i]);
}
Serial.println("DONE");
// Pulse TX_IRQ to tell Mesh GW a message has been written to serial buffer
digitalWrite(TX_IRQ, LOW);
delay(10);
digitalWrite(TX_IRQ, HIGH);
_sending = false;
}
/~~~~~~~~~~~~~~~/
/*****/
/ Reads a JSON message and forwards it to Mesh gateway /
/~~~~~~~~~~~~~~~/
void sendToMesh(String json_msg)
{
_sending = true;
Serial.print("Forwarding message to Mesh GW: ");
Serial.println(json_msg);
printQueueSizes();
for (int i = 0; i < json_msg.length(); i++)
{
Serial.print(".");
swSer.write(json_msg[i]);
}
Serial.println("DONE");
// Pulse TX_IRQ to tell Mesh GW a message has been written to serial buffer
digitalWrite(TX_IRQ, LOW);
delay(10);
digitalWrite(TX_IRQ, HIGH);
_sending = false;
}
/~~~~~~~~~~~~~~~/
/*****/
/ Function called when Mesh Interrupt (RX_IRQ) is triggered. /
/ Checks to see if max buffer limit is reached. If not, the received /
/ message is read and pushed to the MQTT buffer. Otherwise, it signals /
/ that buffer needs to be emptied and drops any messages until done. /
/~~~~~~~~~~~~~~~/
void receiveFromMesh(void)
{
if (mqttMessageBuffer.size() >= 30)
{
_empty_mqtt_buffer_irq = true;
detachInterrupt(digitalPinToInterrupt(RX_IRQ));
}
if (!_empty_mqtt_buffer_irq)
{
_receiving = true;
Serial.println("\n\nMesh GW interrupt detected");
printQueueSizes();
bool received = false;
String swMessage;
//while(digitalRead(RX_IRQ)==LOW){
while (swSer.available() > 0)
{
char swChar = swSer.read();
//Serial.print(swChar);
if ((char)swChar == '\')
{
received = true;
Serial.println("==================================> ");
Serial.println("Received message from Mesh gateway: ");
Serial.println("==================================> ");
Serial.println(swMessage);
if (!checkCRC(swMessage))
{
Serial.println("\n====================================>");
Serial.println("CORRUPTED MESSAGE!!!!!!");
Serial.println("====================================>");
swMessage = "";
break;
}
else
{
swMessage = swMessage.substring(0, swMessage.length() - 4);
mqttMessageBuffer.push_back(swMessage);
printQueueSizes();
swMessage = "";
continue;
}
}
if ((char)swChar != 'ÿ')
{ // Exclude character ÿ
swMessage += swChar;
}
// }
}
if (!received)
{
Serial.println("Failed!");
}
_receiving = false;
}
else
{
Serial.println("MQTT buffer full!! Dropping data while it's emptying....");
}
}
/~~~~~~~~~~~~~~~/
/*****/
/ Connects to Wifi network with the given credentials /
/~~~~~~~~~~~~~~~/
void setup_wifi()
{
delay(10);
// We start by connecting to a WiFi network
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); }
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
/~~~~~~~~~~~~~~~/
/*****/
/ MQTT callback function: Receives MQTT messages from the broker, then /
/ formats them as JSON Strings and pushes them onto the Mesh buffer /
/~~~~~~~~~~~~~~~/
void callback(char topic, byte payload, unsigned int length)
{
// Print some debugging
Serial.print("Message arrived [");
Serial.print(topic);
Serial.print("] ");
String value;
for (int i = 0; i < length; i++)
{
value += (char)payload[i];
}
Serial.println(value);
// Extract all subtopics String topic_str = String(topic); int topic_length = topic_str.length(); int subtopicNo = 0; for (int i = 0; i < topic_length; i++) { if (String(topic_str.charAt(i)) == "/") { subtopicNo++; } } String subtopics[subtopicNo]; bool topicParsed = false; int parserPos = 0; int i = 0; while (!topicParsed) { int startPos = parserPos + 1; //Serial.print("indexOf: "); Serial.println(topic_str.indexOf("/", startPos)); int endPos = topic_str.indexOf("/", startPos); if (endPos == -1) { endPos = topic_str.length(); topicParsed = true; } subtopics[i] = topic_str.substring(startPos, endPos); parserPos = endPos; i++; }
// Format and push message to buffer
String mesh_topic;
for (int i = 3; i < subtopicNo; i++)
{
mesh_topic += "/";
mesh_topic += subtopics[i];
}
meshMessageBuffer.push_back(jsonMqttMessage(mesh_topic, value));
}
/~~~~~~~~~~~~~~~/
/*****/
/ MQTT reconnect funtion: Get called when a connection is lost or first /
/ started. /
/~~~~~~~~~~~~~~~/
void reconnect()
{
// Loop until we're reconnected
while (!client.connected())
{
Serial.print("Attempting MQTT connection...");
// Attempt to connect
if (client.connect(mqtt_client_id, mqtt_username, mqtt_password, mqtt_will_topic, mqtt_will_qos, mqtt_will_retain, mqtt_will_payload))
{
Serial.println("connected");
// Once connected, publish an announcement...
client.publish(String("/1/gateways/" + getMac() + "/disconnected").c_str(), String("0").c_str());
// ... and resubscribe
client.subscribe(String("/1/gateways/" + getMac() + "/+/sensors/+/input/value").c_str());
}
else
{
Serial.print("failed, rc=");
Serial.print(client.state());
Serial.println(" try again in 5 seconds");
// Wait 5 seconds before retrying
delay(5000);
}
}
}
/~~~~~~~~~~~~~~~/
void setup() {
// Start HW and SW Serials Serial.begin(115200); swSer.begin(38400);
// Print initial debugging info Serial.println("\nMeshquitto MQTT Gateway started!");
// Setup WiFi and MQTT connections setup_wifi(); client.setServer(mqtt_server, 8883); client.setCallback(callback); reconnect(); client.loop();
// Set up TX and RX pins and interrupts pinMode(TX_IRQ, OUTPUT); digitalWrite(TX_IRQ, HIGH); pinMode(RX_IRQ, INPUT); attachInterrupt(digitalPinToInterrupt(RX_IRQ), receiveFromMesh, FALLING); }
void loop() {
// MQTT_loop
if (!client.connected())
{
reconnect();
}
client.loop();
// Serial.print("looping...");
// Publish any available messages received from Mesh to MQTT
if (mqttMessageBuffer.size() > 0 && !_receiving)
{
//while(mqttMessageBuffer.size()>0){
printHeap();
String swMessage = mqttMessageBuffer[0];
mqttMessageBuffer.pop_front();
StaticJsonDocument<500> jsonDoc;
deserializeJson(jsonDoc, swMessage);
String topic = jsonDoc["topic"].as
// Forward any available MQTT messages to Mesh network if (!_receiving) { while (meshMessageBuffer.size() > 0) { String msg = meshMessageBuffer[0]; Serial.println("Sending message to GW: "); Serial.println(msg); meshMessageBuffer.pop_front(); sendToMesh(msg); printHeap(); } } }`
@sglvladi "Therefore I would suggest you double-check that the broker details you have entered are correct." what does it mean? I have filled everything right like MQTT password, username, client id ....please check.
Okay, try changing
WiFiClientSecure espClient;
to
WiFiClient espClient;
Also, you will need to set the port to 1883, instead of 8883, inside the setup() function, i.e.:
client.setServer(mqtt_server, 1883);
Finally, please delete your previous comment containing your adafruit IO MQTT key information. NEVER include confidential information in your messages. I would also suggest that you regenerate your password just to be safe.
okay, I am trying.
@sglvladi again the same error is popped up. what should I do
@sglvladi do you think should I change anything in broker details just like client id , topic etc... please respond to me.
@sglvladi please see the error : "Attempting MQTT connection...failed, rc=5 try again in 5 seconds" I am not able to solve the error
@sglvladi please can you help me out?
I tried to compile, but there are errors. how can i fix?
the error messages are:
Arduino: 1.8.19 (Linux), Placa:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:65:2: error: reference to 'byte' is ambiguous
65 | byte set_key (byte key[], int keylen) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:80:21: error: reference to 'byte' is ambiguous
80 | void copy_n_bytes (byte AESt, byte src, byte n) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:80:21: error: 'byte' has not been declared
80 | void copy_n_bytes (byte AESt, byte src, byte n) ;
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:80:34: error: reference to 'byte' is ambiguous
80 | void copy_n_bytes (byte AESt, byte src, byte n) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:80:34: error: 'byte' has not been declared
80 | void copy_n_bytes (byte AESt, byte src, byte n) ;
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:80:46: error: reference to 'byte' is ambiguous
80 | void copy_n_bytes (byte AESt, byte src, byte n) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:80:46: error: 'byte' has not been declared
80 | void copy_n_bytes (byte AESt, byte src, byte n) ;
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:94:2: error: reference to 'byte' is ambiguous
94 | byte encrypt (byte plain [N_BLOCK], byte cipher [N_BLOCK]) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:105:2: error: reference to 'byte' is ambiguous
105 | byte cbc_encrypt (byte plain, byte cipher, int n_block, byte iv [N_BLOCK]) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:115:2: error: reference to 'byte' is ambiguous
115 | byte cbc_encrypt (byte plain, byte cipher, int n_block) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:130:2: error: reference to 'byte' is ambiguous
130 | byte decrypt (byte cipher [N_BLOCK], byte plain [N_BLOCK]) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:141:2: error: reference to 'byte' is ambiguous
141 | byte cbc_decrypt (byte cipher, byte plain, int n_block, byte iv [N_BLOCK]) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:151:2: error: reference to 'byte' is ambiguous
151 | byte cbc_decrypt (byte cipher, byte plain, int n_block) ;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:190:14: error: reference to 'byte' is ambiguous
190 | void get_IV(byte out);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:190:14: error: 'byte' has not been declared
190 | void get_IV(byte out);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:211:29: error: reference to 'byte' is ambiguous
211 | void padPlaintext(void in,byte out);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:211:29: error: 'byte' has not been declared
211 | void padPlaintext(void in,byte out);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:221:16: error: reference to 'byte' is ambiguous
221 | bool CheckPad(byte in,int size);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:221:16: error: 'byte' has not been declared
221 | bool CheckPad(byte in,int size);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:231:18: error: reference to 'byte' is ambiguous
231 | void printArray(byte output[],bool p_pad = true);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:231:18: error: 'byte' has not been declared
231 | void printArray(byte output[],bool p_pad = true);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:241:18: error: reference to 'byte' is ambiguous
241 | void printArray(byte output[],int sizel);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:241:18: error: 'byte' has not been declared
241 | void printArray(byte output[],int sizel);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:251:26: error: reference to 'byte' is ambiguous
251 | String printToHEXString(byte output[],bool p_pad = true);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:251:26: error: 'byte' has not been declared
251 | String printToHEXString(byte output[],bool p_pad = true);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:260:26: error: reference to 'byte' is ambiguous
260 | String printToHEXString(byte output[],int sizel);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:260:26: error: 'byte' has not been declared
260 | String printToHEXString(byte output[],int sizel);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:270:23: error: reference to 'byte' is ambiguous
270 | String printToString(byte output[],bool p_pad = true);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:270:23: error: 'byte' has not been declared
270 | String printToString(byte output[],bool p_pad = true);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:279:23: error: reference to 'byte' is ambiguous
279 | String printToString(byte output[],int sizel);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:279:23: error: 'byte' has not been declared
279 | String printToString(byte output[],int sizel);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:22: error: reference to 'byte' is ambiguous
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:22: error: 'byte' has not been declared
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:45: error: reference to 'byte' is ambiguous
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:45: error: 'byte' has not been declared
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:58: error: reference to 'byte' is ambiguous
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:58: error: 'byte' has not been declared
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:79: error: reference to 'byte' is ambiguous
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:291:79: error: 'byte' has not been declared
291 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:302:22: error: reference to 'byte' is ambiguous
302 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:302:22: error: 'byte' has not been declared
302 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:302:45: error: reference to 'byte' is ambiguous
302 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:302:45: error: 'byte' has not been declared
302 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:302:58: error: reference to 'byte' is ambiguous
302 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:302:58: error: 'byte' has not been declared
302 | void do_aes_encrypt(byte plain,int size_p,byte cipher,byte key, int bits);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:22: error: reference to 'byte' is ambiguous
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:22: error: 'byte' has not been declared
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:46: error: reference to 'byte' is ambiguous
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:46: error: 'byte' has not been declared
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:58: error: reference to 'byte' is ambiguous
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:58: error: 'byte' has not been declared
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:79: error: reference to 'byte' is ambiguous
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:314:79: error: 'byte' has not been declared
314 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits, byte ivl [N_BLOCK]);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:325:22: error: reference to 'byte' is ambiguous
325 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:325:22: error: 'byte' has not been declared
325 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:325:46: error: reference to 'byte' is ambiguous
325 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:325:46: error: 'byte' has not been declared
325 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:325:58: error: reference to 'byte' is ambiguous
325 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits);
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:325:58: error: 'byte' has not been declared
325 | void do_aes_decrypt(byte cipher,int size_c,byte plain,byte key, int bits);
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:337:3: error: reference to 'byte' is ambiguous
337 | byte key_sched [KEY_SCHEDULE_BYTES] ;/< holds the pre-computed key for the encryption/decrpytion. */
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:339:3: error: reference to 'byte' is ambiguous
339 | byte iv[16];/*< holds the initialization vector that will be used in the cipher. /
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino:16:
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/libraries/AES-master/AES.h:346:2: error: reference to 'byte' is ambiguous
346 | byte arr_pad[15] = { 0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f };/< holds the hexadecimal padding values /
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino: In function 'String AES_encrypt(String, String)':
meshquitto_node:150:3: error: reference to 'byte' is ambiguous
150 | byte plain_buf = (unsigned char)plain.c_str();
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
meshquitto_node:150:10: error: 'plain_buf' was not declared in this scope
150 | byte plain_buf = (unsigned char)plain.c_str();
| ^~~~~
meshquitto_node:151:3: error: reference to 'byte' is ambiguous
151 | byte key_buf = (unsigned char)key.c_str();
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
meshquitto_node:151:10: error: 'key_buf' was not declared in this scope
151 | byte key_buf = (unsigned char)key.c_str();
| ^~~
meshquitto_node:154:3: error: reference to 'byte' is ambiguous
154 | byte cipher_buf[cipher_length];
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
meshquitto_node:155:53: error: 'cipher_buf' was not declared in this scope
155 | aes.do_aes_encrypt(plain_buf, plain.length() + 1, cipher_buf, key_buf, AES_BITS);
| ^~~~~~
/home/wilson/Downloads/IDE-meshquitto/portable/sketchbook/meshquitto_node/meshquitto_node.ino: In function 'String AES_decrypt(String, String)':
meshquitto_node:188:3: error: reference to 'byte' is ambiguous
188 | byte cipher_buf[cipher.length()/2-2];
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
meshquitto_node:192:5: error: 'cipher_buf' was not declared in this scope; did you mean 'cipher'?
192 | cipher_buf[j] = char(strtoul(cipher.substring(i,i+2).c_str(), NULL, 16));
| ^~~~~~
| cipher
meshquitto_node:201:3: error: reference to 'byte' is ambiguous
201 | byte key_buf = (unsigned char)key.c_str();
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
meshquitto_node:201:10: error: 'key_buf' was not declared in this scope
201 | byte key_buf = (unsigned char*)key.c_str();
| ^~~
meshquitto_node:203:3: error: reference to 'byte' is ambiguous
203 | byte plain_buf[plain_length];
| ^~~~
In file included from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cmath:42,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/math.h:36,
from /home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:34,
from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 | enum class byte : unsigned char;
| ^~~~
In file included from sketch/meshquitto_node.ino.cpp:1:
/home/wilson/Downloads/IDE-meshquitto/portable/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:160:17: note: 'typedef uint8_t byte'
160 | typedef uint8_t byte;
| ^~~~
meshquitto_node:204:22: error: 'cipher_buf' was not declared in this scope; did you mean 'cipher'?
204 | aes.do_aes_decrypt(cipher_buf, cipher.length()/2-2, plain_buf, key_buf, AES_BITS);
| ^~~~~~
| cipher
meshquitto_node:204:55: error: 'plain_buf' was not declared in this scope
204 | aes.do_aes_decrypt(cipher_buf, cipher.length()/2-2, plain_buf, key_buf, AES_BITS);
| ^~~~~
exit status 1
reference to 'byte' is ambiguous
Este relatório teria mais informações com "Mostrar a saida detalhada durante a compilação" opção pode ser ativada em "Arquivo -> Preferências"
compilation critical error of meshquitto_node and meshquitto_mesh_gateway
src\main.cpp:175:23: error: 'class AES' has no member named 'printToHexString'
175 | String cipher = aes.printToHexString(cipher_buf, cipher_length);
| ^~~~~
src\main.cpp:222:22: error: 'class AES' has no member named 'printToString'
222 | String plain = aes.printToString(plain_buf, plain_size);
| ^~~~~
compilation of meshquitto_node have 1 more critical error
src\main.cpp:121:28: error: 'AES_encrypt' was not declared in this scope
121 | String encrypted_msg = AES_encrypt(json_msg, AES_KEY);
| ^~~
i'm use (https://github.com/spaniakos/AES) (https://github.com/vinmenn/Crc16) i integrate manually this libraries because doesn't works with libraries display in visual studio code when i research
3 warning in node code
src\main.cpp:159:8: warning: unused variable 'lo' [-Wunused-variable]
159 | char lo = plain_size & 0xFF;
| ^~
src\main.cpp:160:8: warning: unused variable 'hi' [-Wunused-variable]
160 | char hi = plain_size >> 8;
| ^~
src\main.cpp: In function 'String AES_decrypt(String, String)':
src\main.cpp:190:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
190 | for(int i=0;i<=cipher.length()-6;i+=2){
| ~^~~~~~~
10 warning in mesh gateway code src\main.cpp:613:18: warning: multi-character character constant [-Wmultichar] 613 | if(swChar!='ÿ'){ // Exclude character ÿ | ^~~ src\main.cpp: In function 'bool checkCRC(String)': src\main.cpp:135:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 135 | for(int i=0; i<dataPlusCRC.length()-4; i++){ | ~^ |
char lo = plain_size & 0xFF; | ^~ src\main.cpp:179:8: warning: unused variable 'hi' [-Wunused-variable] 179 | char hi = plain_size >> 8; | ^~ src\main.cpp: In function 'String AES_decrypt(String, String)': src\main.cpp:207:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 207 | for(int i=0;i<=cipher.length()-6;i+=2){ | ~^ |
if(macAddressMap.indexOf(from)==-1){ | Serial.printf(" %u", millis()-*lost_timeout); | ~^ |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
long unsigned int | ||||||||||||||
unsigned int | ||||||||||||||
%lu |
src\main.cpp: In function 'void sendToMQTT(String, String)':
src\main.cpp:545:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
545 | for (int i = 0; i < crc_msg.length(); i++) {
| ^~~~
src\main.cpp: In function 'void sendToMQTT(String)':
src\main.cpp:574:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
574 | for (int i = 0; i < crc_msg.length(); i++) {
| ^~~~
src\main.cpp: In function 'void receiveFromWiFi()':
src\main.cpp:627:48: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
627 | if(macAddressMap.indexOfValue(macAddress)!=-1){
| ~~~~~~^~~~
In file included from src\main.cpp:18:
C:\Users\doudou\Documents\PlatformIO\Projects\meshquitto_MESH_gateway.pio\libdeps\d1_mini_lite\HashMap\HashMap.h: In instantiation of 'V& HashMap<K, V, capacity>::operator [with K = int; V = String; unsigned int capacity = 30]':
src\main.cpp:348:72: required from here
C:\Users\doudou\Documents\PlatformIO\Projects\meshquitto_MESH_gateway.pio\libdeps\d1_mini_lite\HashMap\HashMap.h:131:29: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
131 | else if (currentIndex < capacity)
| ~~~^~~~
C:\Users\doudou\Documents\PlatformIO\Projects\meshquitto_MESH_gateway.pio\libdeps\d1_mini_lite\HashMap\HashMap.h: In instantiation of 'void HashMap<K, V, capacity>::remove(K) [with K = int; V = String; unsigned int capacity = 30]':
src\main.cpp:358:50: required from here
C:\Users\doudou\Documents\PlatformIO\Projects\meshquitto_MESH_gateway.pio\libdeps\d1_mini_lite\HashMap\HashMap.h:237:31: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
237 | for (int i = index; i < capacity - 1; i++)
| ^~~~
if you can help me only with this message you are so good
E:\Arduino\arduino-builder -dump-prefs -logger=machine -hardware E:\Arduino\hardware -hardware C:\Users\Home\AppData\Local\Arduino15\packages -tools E:\Arduino\tools-builder -tools E:\Arduino\hardware\tools\avr -tools C:\Users\Home\AppData\Local\Arduino15\packages -built-in-libraries E:\Arduino\libraries -libraries C:\Users\Home\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None__,wipe=none,baud=115200 -ide-version=10813 -build-path C:\Users\Home\AppData\Local\Temp\arduino_build_959481 -warnings=none -build-cache C:\Users\Home\AppData\Local\Temp\arduino_cache_708930 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.mkspiffs.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -verbose C:\Users\Home\Documents\Arduino\meshquitto-master\meshquitto-master\meshquitto_gateway\mesh_gateway\mesh_gateway.ino E:\Arduino\arduino-builder -compile -logger=machine -hardware E:\Arduino\hardware -hardware C:\Users\Home\AppData\Local\Arduino15\packages -tools E:\Arduino\tools-builder -tools E:\Arduino\hardware\tools\avr -tools C:\Users\Home\AppData\Local\Arduino15\packages -built-in-libraries E:\Arduino\libraries -libraries C:\Users\Home\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10813 -build-path C:\Users\Home\AppData\Local\Temp\arduino_build_959481 -warnings=none -build-cache C:\Users\Home\AppData\Local\Temp\arduino_cache_708930 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.mkspiffs.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -verbose C:\Users\Home\Documents\Arduino\meshquitto-master\meshquitto-master\meshquitto_gateway\mesh_gateway\mesh_gateway.ino Using board 'nodemcuv2' from platform in folder: C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2 Using core 'esp8266' from platform in folder: C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2 Detecting libraries used... "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for SoftwareSerial.h: [SoftwareSerial@5.0.4] ResolveLibrary(SoftwareSerial.h) -> candidates: [SoftwareSerial@5.0.4] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for painlessMesh.h: [painlessMesh-master@1.4.2] ResolveLibrary(painlessMesh.h) -> candidates: [painlessMesh-master@1.4.2] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for TaskSchedulerDeclarations.h: [TaskScheduler-master@3.1.6] ResolveLibrary(TaskSchedulerDeclarations.h) -> candidates: [TaskScheduler-master@3.1.6] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for ArduinoJson.h: [ArduinoJson@5.10.0] ResolveLibrary(ArduinoJson.h) -> candidates: [ArduinoJson@5.10.0] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for ESP8266WiFi.h: [ESP8266WiFi@1.0] ResolveLibrary(ESP8266WiFi.h) -> candidates: [ESP8266WiFi@1.0] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for ESPAsyncTCP.h: [ESPAsyncTCP-master@1.2.2] ResolveLibrary(ESPAsyncTCP.h) -> candidates: [ESPAsyncTCP-master@1.2.2] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src" "-IC:\Users\Home\Documents\Arduino\libraries\ESPAsyncTCP-master\src" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for Ticker.h: [Ticker@1.0] ResolveLibrary(Ticker.h) -> candidates: [Ticker@1.0] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src" "-IC:\Users\Home\Documents\Arduino\libraries\ESPAsyncTCP-master\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\Ticker" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for AES.h: [AES-master] ResolveLibrary(AES.h) -> candidates: [AES-master] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src" "-IC:\Users\Home\Documents\Arduino\libraries\ESPAsyncTCP-master\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\Ticker" "-IC:\Users\Home\Documents\Arduino\libraries\AES-master" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for Crc16.h: [Crc16-master] ResolveLibrary(Crc16.h) -> candidates: [Crc16-master] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src" "-IC:\Users\Home\Documents\Arduino\libraries\ESPAsyncTCP-master\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\Ticker" "-IC:\Users\Home\Documents\Arduino\libraries\AES-master" "-IC:\Users\Home\Documents\Arduino\libraries\Crc16-master" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for HashMap.h: [HashMap] ResolveLibrary(HashMap.h) -> candidates: [HashMap] "C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Home\AppData\Local\Temp\arduino_build_959481/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\variants\nodemcu" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src" "-IC:\Users\Home\Documents\Arduino\libraries\painlessMesh-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master\src" "-IC:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src" "-IC:\Users\Home\Documents\Arduino\libraries\ESPAsyncTCP-master\src" "-IC:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\Ticker" "-IC:\Users\Home\Documents\Arduino\libraries\AES-master" "-IC:\Users\Home\Documents\Arduino\libraries\Crc16-master" "-IC:\Users\Home\Documents\Arduino\libraries\HashMap" "C:\Users\Home\AppData\Local\Temp\arduino_build_959481\sketch\mesh_gateway.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for WProgram.h: [] ResolveLibrary(WProgram.h) -> candidates: [] In file included from C:\Users\Home\Documents\Arduino\meshquitto-master\meshquitto-master\meshquitto_gateway\mesh_gateway\mesh_gateway.ino:16:0: C:\Users\Home\Documents\Arduino\libraries\HashMap/HashMap.h:33:22: fatal error: WProgram.h: No such file or directory
include
compilation terminated. Using library SoftwareSerial at version 5.0.4 in folder: C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial Using library painlessMesh-master at version 1.4.2 in folder: C:\Users\Home\Documents\Arduino\libraries\painlessMesh-master Using library TaskScheduler-master at version 3.1.6 in folder: C:\Users\Home\Documents\Arduino\libraries\TaskScheduler-master Using library ArduinoJson at version 5.10.0 in folder: C:\Users\Home\Documents\Arduino\libraries\ArduinoJson Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi Using library ESPAsyncTCP-master at version 1.2.2 in folder: C:\Users\Home\Documents\Arduino\libraries\ESPAsyncTCP-master Using library Ticker at version 1.0 in folder: C:\Users\Home\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\Ticker Using library AES-master in folder: C:\Users\Home\Documents\Arduino\libraries\AES-master (legacy) Using library Crc16-master in folder: C:\Users\Home\Documents\Arduino\libraries\Crc16-master (legacy) Using library HashMap in folder: C:\Users\Home\Documents\Arduino\libraries\HashMap (legacy) exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).