Post by PiGuy on Mar 5, 2019 22:37:44 GMT -8
I recently purchased the BC24 Board that has the Demo software on it with the plan to load the BC24 Weather Program onto it. I already had purchased all the weather components for another project I was doing with a Raspberry Pi. But I liked the idea of the circle of LEDs that I hoped to program to do a visual display of wind direction (three LEDs would represent direction on the circle) and wind speed (different LED colors represent wind speed ranges).
The latest Arduino IDE program (1.8.8) was loaded onto my laptop running the latest Ubuntu OS. The BC24 weather program was downloaded from the GitHub website in the zip file format. I also followed the instructions to get the Adafruit Feather library loaded into the IDE. My first several attempts to compile the program were met with mismatched case in letters for the Library names and other code letter case mismatches. These are the error messages I am down to now when I try to compile the program:
SDL_ESP32_BC24_WEATHER:625:24: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
^
SDL_ESP32_BC24_WEATHER:626:23: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
In file included from /home/mark/Arduino/SDL_ESP32_BC24_WEATHER/SDL_ESP32_BC24_WEATHER.ino:189:0:
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h: In function 'bool readWXLink()':
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
Multiple libraries were found for "WiFi.h"
Used: /home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/WiFi
Not used: /home/mark/Downloads/arduino-1.8.8-linux64/arduino-1.8.8/libraries/WiFi
exit status 1
'LOCALMAC' was not declared in this scope
There was another undeclared code in scope with 'WEB_SERVER_PORT' but after reviewing code in the other BC24 programs I installed this line of code in the ...ino file:
#define WEB_SERVER_PORT 80
and the not declared error message disappeared. The LOCALMAC and LOCALIP I could not find being declared in any of the other BC24 programs or libraries.
Programming in the Arduino space is very new to me as most of my recent coding experience has been using Raspberry Pi's. So I find myself comparing code across programs to try to get them to work so hopefully the web server port define line is correct.
Any guidance or code changes would be greatly appreciated.
The latest Arduino IDE program (1.8.8) was loaded onto my laptop running the latest Ubuntu OS. The BC24 weather program was downloaded from the GitHub website in the zip file format. I also followed the instructions to get the Adafruit Feather library loaded into the IDE. My first several attempts to compile the program were met with mismatched case in letters for the Library names and other code letter case mismatches. These are the error messages I am down to now when I try to compile the program:
SDL_ESP32_BC24_WEATHER:625:24: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
^
SDL_ESP32_BC24_WEATHER:626:23: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
In file included from /home/mark/Arduino/SDL_ESP32_BC24_WEATHER/SDL_ESP32_BC24_WEATHER.ino:189:0:
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h: In function 'bool readWXLink()':
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:98:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int address, int size, int sendStop);
^
/home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/Wire/src/Wire.h:93:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint16_t, uint8_t, bool)
uint8_t requestFrom(uint16_t address, uint8_t size, bool sendStop);
^
Multiple libraries were found for "WiFi.h"
Used: /home/mark/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/WiFi
Not used: /home/mark/Downloads/arduino-1.8.8-linux64/arduino-1.8.8/libraries/WiFi
exit status 1
'LOCALMAC' was not declared in this scope
There was another undeclared code in scope with 'WEB_SERVER_PORT' but after reviewing code in the other BC24 programs I installed this line of code in the ...ino file:
#define WEB_SERVER_PORT 80
and the not declared error message disappeared. The LOCALMAC and LOCALIP I could not find being declared in any of the other BC24 programs or libraries.
Programming in the Arduino space is very new to me as most of my recent coding experience has been using Raspberry Pi's. So I find myself comparing code across programs to try to get them to work so hopefully the web server port define line is correct.
Any guidance or code changes would be greatly appreciated.