Ok, so I must have misread or just had a "space-out" moment when reading that part, but after creating the *.pretty directories it worked. Thanks!
ATXCoder
@ATXCoder
Best posts made by ATXCoder
-
RE: Missing mysensors_XYZ.pretty files
-
MQTT Gateway - Stuck on "Started!"
Arduino IDE: 1.6.5
OS: Windows 8.1
MySensor Library: 1.4I started out by wiring up the W5100 Ethernet Module, NRF24L01+, and DCcduino UNO (Arduino Uno Clone) as per the Ethernet Gateway guide (http://www.mysensors.org/build/ethernet_gateway). I then:
-
Downloaded the 1.4 MySensors Library from http://www.mysensors.org/download/
-
Unzipped the Arduino-Master.zip file and copied the "Libraries" folder in to my sketch book folder.
-
Restarted the Arduino IDE and loaded the MQTT Sketch
-
Defined a static IP and port
#define TCP_PORT 1884 IPAddress TCP_IP ( 192, 168, 1, 50 ); byte TCP_MAC[] = { 0x02, 0xDE, 0xAD, 0x00, 0x00, 0x42 };
I am using 1884 so it dos't conflict with my existing Mosquitto MQTT Server
- I edited RF24_config.h to enable soft-spi
/*** USER DEFINES: ***/ //#define FAILURE_HANDLING //#define SERIAL_DEBUG #define MINIMAL //#define SPI_UART #define SOFTSPI /**********************/
When I upload the sketch everything seems to load fine. I can ping the gateway and get a valid response. When I look at the serial monitor window all I see is
Started!I am pretty sure there should be more in the serial monitor window. I am not able to connect to the gateway with a MQTT Client though (using MQTTlens Chrome App). I don't have any sensors online yet, just trying to get the MQTT Gateway up and running and then test using it with OpenHAB (or maybe HomeGenie).
Looking for some assistance, troubleshooting steps, etc. Any help is appreciated. Thanks!
-
Latest posts made by ATXCoder
-
RE: Missing mysensors_XYZ.pretty files
Ok, so I must have misread or just had a "space-out" moment when reading that part, but after creating the *.pretty directories it worked. Thanks!
-
RE: Missing mysensors_XYZ.pretty files
One more thing. I thought maybe the "/" were messing up Windows so I switched a few of them to "" and then got this error on the ones I switched:
IO_ERROR: http GET command failed Cannot get/download Zip archive: 'https://codeload.github.com/mysensors-kicad%5cmysensors_radios.pretty/zip/master' for library path: 'https://github.com/mysensors-kicad\mysensors_radios.pretty'. Reason: 'Bad request' from C:/Jenkins/workspace/windows-kicad-msys2-stable/src/kicad/pcbnew/github/github_plugin.cpp : remote_get_zip() : line 584```
-
Missing mysensors_XYZ.pretty files
I have installed KiCad on my Windows 8.1 PC and am trying to learn it so I can start making PCBs for some sensors. I am using the MySensors KiCad REPO and have followed the tutorial at https://github.com/mysensors-kicad/part_management and all seems to work. The issue though happens when I run CvPcb to associate the footprints and get the following error:
IO_ERROR: footprint library path 'C:\Users\Thomas\Git\MySensors\mysensors_symbols\mysensors_radios.pretty' does not exist from C:/Jenkins/workspace/windows-kicad-msys2-stable/src/kicad/pcbnew/kicad_plugin.cpp : FootprintEnumerate() : line 1786
I see the same error for all the mysensor_xyz.pretty files. Now those files are not in that location because the guide (refernced above) that I followed didn't say anything about cloning those "mysensor_xyz.pretty" repos and I was under the assumption that KiCad would look for those files in their respective GitHub repos. I figured that was the whole purpose of defining a MYSGITHUB path.
Am I supposed to clone those repos as well? If so, wouldn't I need to update my fp-lib-table AND what is the point of the MYSGITHUB path?
This is what the pertenant part of my fp-lib-table file looks like:
(lib (name mysensors_arduino)(type Github)(uri ${MYSGITHUB}/mysensors_arduino.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_arduino.pretty")(descr "")) (lib (name mysensors_buttons)(type Github)(uri ${MYSGITHUB}/mysensors_buttons.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_buttons.pretty")(descr "")) (lib (name mysensors_connectors)(type Github)(uri ${MYSGITHUB}/mysensors_connectors.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_connectors.pretty")(descr "")) (lib (name mysensors_handsoldering)(type Github)(uri ${MYSGITHUB}/mysensors_handsoldering.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_handsoldering.pretty")(descr "")) (lib (name mysensors_leds)(type Github)(uri ${MYSGITHUB}/mysensors_leds.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_leds.pretty")(descr "")) (lib (name mysensors_network)(type Github)(uri ${MYSGITHUB}/mysensors_network.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_network.pretty")(descr "")) (lib (name mysensors_obscurities)(type Github)(uri ${MYSGITHUB}/mysensors_obscurities.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_obscurities.pretty")(descr "")) (lib (name mysensors_radios)(type Github)(uri ${MYSGITHUB}/mysensors_radios.pretty)(options "allow_pretty_writing_to_this_dir=${MYSLOCAL}\mysensors_symbols\mysensors_radios.pretty")(descr ""))```
-
How to use the Development branch for Sensor and Gateway
I got past all my recent issues and actually got the "MQTT Gateway Client" using the development-branch of the library (https://github.com/mysensors/Arduino/tree/development). If I clear out my entire sketchbook folder and then place the "libraries" and "hardware" folders ONLY into the Sketchbook location, the gateway works fine. The issue is I can't make the DallasTemp Example sketch work. If I open the example and verify it, it compiles just fine. I can even upload it. When I start it though it contacts the gateway for a ID and obviously doesn't get one (I am using MYSController to view the controller logs and test) as my understanding is the Controller assigns the ID.
If I clear everything out again from the sketch folder and use the 1.5 master library I can actually define a ID in the DallasTemp sketch:
#define NODE_ID 12
I also noticed that in the Setup() there seems to be a lot more code in the 1.5 Master that is missing in the Development DallasTemp Example.
void setup() { // Startup up the OneWire library sensors.begin(); // requestTemperatures() will not block current thread sensors.setWaitForConversion(false); // Startup and initialize MySensors library. Set callback for incoming messages. gw.begin(NULL, NODE_ID, false); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Temperature Sensor", "1.1"); // Fetch the number of attached temperature sensors numSensors = sensors.getDeviceCount(); // Present all sensors to controller for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { gw.present(i, S_TEMP); } }
If I try to place MySensor gw(); in the Dallas Temp Example from the DEV library I get the following error:
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno" Build options changed, rebuilding all Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI Using library MySensors in folder: C:\Users\Thomas\Documents\Arduino\libraries\MySensors Using library DallasTemperature in folder: C:\Users\Thomas\Documents\Arduino\libraries\DallasTemperature (legacy) Using library OneWire in folder: C:\Users\Thomas\Documents\Arduino\libraries\OneWire (legacy) C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors -IC:\Users\Thomas\Documents\Arduino\libraries\DallasTemperature -IC:\Users\Thomas\Documents\Arduino\libraries\OneWire C:\Users\Thomas\AppData\Local\Temp\build8610461630186494850.tmp\DallasTemperatureSensor.cpp -o C:\Users\Thomas\AppData\Local\Temp\build8610461630186494850.tmp\DallasTemperatureSensor.cpp.o DallasTemperatureSensor.ino:53:1: error: 'MySensor' does not name a type 'MySensor' does not name a type
To sum it all up
I can build a sensor with a manually assigned ID using the MASTER library and then a MQTT Gateway Client with the DEVELOPMENT library (after clearing out the master library). Questions are:-
How exactly do we use the DEV library? Do you create the Gateway using DEV and the Sensors using Master?
-
Do you install the Master first and then the DEV over it? (I can't seem to get that to work in Windows 8.1)
-
If you build both the Sensor and Gateway using the DEV library, then how do you define a NODE_ID in the sensor sketch? If I build both Sensor and Gateway using DEV then the sensor just sits there asking for a ID that it will never get (I am using OpenHab as my controller and right now it seems easier to just manually assign each sensor a ID).
-
-
RE: [SOLVED] Compile error for ESP8266 Wifi Gateway
@Yveaux I switched to a different network, re-downloaded the 1.5 Library, erased everything in my sketchbook and library diretory, unzipped the 1.5 MySensor Library into my sketchbook direcctory and now it complies.
So either it was my network connection flaking out and causing a corrupt download or I just had to completely wipe my sketchbook directory. In either case, thanks for the help!
-
RE: [SOLVED] Compile error for ESP8266 Wifi Gateway
@Yveaux I tried both the 1.5 and Development MySensor libraries. I have re-downloaded the 1.5 MySenors Library and unzipped it into my sketchbook location. Yet I still get the same error. I have included the error report with verbose on
Arduino: 1.6.5 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)" Using library EEPROM in folder: C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM Using library SPI in folder: C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI Using library ESP8266WiFi in folder: C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi Using library MySensors in folder: C:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\GatewayESP8266MQTTClient.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\GatewayESP8266MQTTClient.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM\utility C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM\EEPROM.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\EEPROM\EEPROM.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI\utility C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI\SPI.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\SPI\SPI.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\ESP8266WiFi\ESP8266WiFi.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src\ESP8266WiFiMulti.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\ESP8266WiFi\ESP8266WiFiMulti.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src\WiFiClient.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\ESP8266WiFi\WiFiClient.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\ESP8266WiFi\WiFiClientSecure.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src\WiFiServer.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\ESP8266WiFi\WiFiServer.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src\WiFiUdp.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\ESP8266WiFi\WiFiUdp.cpp.o C:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\nodemcu -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\EEPROM -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI -IC:\Users\Thomas\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors -IC:\Users\Thomas\Documents\Arduino\libraries\MySensors\utility C:\Users\Thomas\Documents\Arduino\libraries\MySensors\MyGateway.cpp -o C:\Users\Thomas\AppData\Local\Temp\build2217209677853778315.tmp\MySensors\MyGateway.cpp.o In file included from C:\Users\Thomas\Documents\Arduino\libraries\MySensors\MyGateway.cpp:13:0: C:\Users\Thomas\Documents\Arduino\libraries\MySensors\utility/MsTimer2.h:7:2: error: #error MsTimer2 library only works on AVR architecture #error MsTimer2 library only works on AVR architecture ^ In file included from C:\Users\Thomas\Documents\Arduino\libraries\MySensors\MyGateway.cpp:14:0: C:\Users\Thomas\Documents\Arduino\libraries\MySensors\utility/PinChangeInt.h:103:19: fatal error: new.h: No such file or directory #include <new.h> ^ compilation terminated. Error compiling.
-
[SOLVED] Compile error for ESP8266 Wifi Gateway
Trying to get the WiFI Gateway (http://www.mysensors.org/build/esp8266_gateway) built but I keep getting the following error message when trying to compile the code:
Arduino: 1.6.5 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)" In file included from C:\Users\Thomas\Documents\Arduino\libraries\MySensors\MyGateway.cpp:13:0: C:\Users\Thomas\Documents\Arduino\libraries\MySensors\utility/MsTimer2.h:7:2: error: #error MsTimer2 library only works on AVR architecture #error MsTimer2 library only works on AVR architecture ^ In file included from C:\Users\Thomas\Documents\Arduino\libraries\MySensors\MyGateway.cpp:14:0: C:\Users\Thomas\Documents\Arduino\libraries\MySensors\utility/PinChangeInt.h:103:19: fatal error: new.h: No such file or directory #include <new.h> ^ compilation terminated. Error compiling. This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.
Curious if anyone has seen this issue before or have any ideas on how to fix it (honestly not even sure what it means, still kind of new to all this).
OS: Windows 8.1
IDE: Arduino 1.6.5
ESP8266 Board: NodeMcu Lua ESP8266 ESP-12E (www.banggood.com/NodeMcu-Lua-ESP-12E-WIFI-Development-Board-p-985891.html) -
MQTT Gateway - Stuck on "Started!"
Arduino IDE: 1.6.5
OS: Windows 8.1
MySensor Library: 1.4I started out by wiring up the W5100 Ethernet Module, NRF24L01+, and DCcduino UNO (Arduino Uno Clone) as per the Ethernet Gateway guide (http://www.mysensors.org/build/ethernet_gateway). I then:
-
Downloaded the 1.4 MySensors Library from http://www.mysensors.org/download/
-
Unzipped the Arduino-Master.zip file and copied the "Libraries" folder in to my sketch book folder.
-
Restarted the Arduino IDE and loaded the MQTT Sketch
-
Defined a static IP and port
#define TCP_PORT 1884 IPAddress TCP_IP ( 192, 168, 1, 50 ); byte TCP_MAC[] = { 0x02, 0xDE, 0xAD, 0x00, 0x00, 0x42 };
I am using 1884 so it dos't conflict with my existing Mosquitto MQTT Server
- I edited RF24_config.h to enable soft-spi
/*** USER DEFINES: ***/ //#define FAILURE_HANDLING //#define SERIAL_DEBUG #define MINIMAL //#define SPI_UART #define SOFTSPI /**********************/
When I upload the sketch everything seems to load fine. I can ping the gateway and get a valid response. When I look at the serial monitor window all I see is
Started!I am pretty sure there should be more in the serial monitor window. I am not able to connect to the gateway with a MQTT Client though (using MQTTlens Chrome App). I don't have any sensors online yet, just trying to get the MQTT Gateway up and running and then test using it with OpenHAB (or maybe HomeGenie).
Looking for some assistance, troubleshooting steps, etc. Any help is appreciated. Thanks!
-