Weird compile errors.
Posted: Sun Oct 30, 2016 12:52 pm
EDIT: I deleted the easyMesh library and then reinstalled it and the weird errors went away.
============================================================
I get the following errors. The confusing thing is that what I am compiling has nothing to do with the in scanNetworksAsync.ino. If I were to open that file and compile it I get no errors.
I had been trying to get the exception decoder app to work (Arduino 1.6.12 incompatibility). I deleted some directories with the compiler output files. I have had this problem. I didn't get anywhere. I tried deleting Arduino and removing ESP additions, re-installed, and I get the following. The actual file I want to compile is below.
Any ideas?
============================================================
I get the following errors. The confusing thing is that what I am compiling has nothing to do with the in scanNetworksAsync.ino. If I were to open that file and compile it I get no errors.
I had been trying to get the exception decoder app to work (Arduino 1.6.12 incompatibility). I deleted some directories with the compiler output files. I have had this problem. I didn't get anywhere. I tried deleting Arduino and removing ESP additions, re-installed, and I get the following. The actual file I want to compile is below.
Any ideas?
Code: Select all
line-map.c: file "C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino" left but not entered
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554435:1: error: 'boolean' does not name a type
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino: In function 'void setup()':
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554443:3: error: 'Serial' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554446:20: error: 'pinMode' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554448:3: error: 'WiFi' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554448:13: error: 'WIFI_STA' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554450:12: error: 'delay' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino: In function 'void loop()':
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554455:31: error: 'millis' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554460:23: error: 'ledState' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554460:31: error: 'digitalWrite' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554468:5: error: 'WiFi' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554469:5: error: 'Serial' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554474:11: error: 'WiFi' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554477:5: error: 'Serial' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\esp8266\scan\scanNetworksAsync\scanNetworksAsync.ino:33554480:142: error: 'ENC_TYPE_NONE' was not declared in this scope
exit status 1
Error compiling for board Generic ESP8266 Module.
Code: Select all
//************************************************************
// testHere.ino
// simple(st) testing application to bring the mesh up and nothing else ...
#include <easyMesh.h>
#define MESH_PREFIX "Mesh"
#define MESH_PASSWORD "Password"
#define MESH_PORT 5555
easyMesh mesh;
void setup() {
Serial.begin(115200);
//mesh.setDebugMsgTypes( ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE | APPLICATION ); // all types on
mesh.setDebugMsgTypes( ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION ); // set before init() so that you can see startup messages
mesh.init( MESH_PREFIX, MESH_PASSWORD, MESH_PORT );
mesh.setReceiveCallback( &receivedCallback );
mesh.setNewConnectionCallback( &newConnectionCallback );
}
void loop() {
mesh.update();
}
void receivedCallback( uint32_t from, String &msg ) {
Serial.printf("startHere: Received from %d msg=%s\n", from, msg.c_str());
}
void newConnectionCallback( bool adopt ) {
Serial.printf("startHere: New Connection, adopt=%d\n", adopt);
}