gmag11 / EnigmaIOT

Secure sensor and gateway platform based on ESP8266 and ESP32
https://gmag11.github.io/EnigmaIOT
MIT License
240 stars 46 forks source link

trying to build MQTT-noSSL #31

Closed GeoffreyMills closed 3 years ago

GeoffreyMills commented 3 years ago

build_errors.txt Hi,

Got PlatformIO installed, got Git working (issue #30) and now trying to build the MQTT-nossl example. I am used to Arduino IDE so step learning curve here.. going to be something very basic I suspect (missing library?) .. googling now PS: Please keep writing that "how to" documentation .

I have attached a text file with the build output

Archiving .pio\build\esp32-MQTTGateway-NoSSL\libFrameworkArduino.a Linking .pio\build\esp32-MQTTGateway-NoSSL\firmware.elf .pio\build\esp32-MQTTGateway-NoSSL\libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to setup()' .pio\build\esp32-MQTTGateway-NoSSL\libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference toloop()'.pio\build\esp32-MQTTGateway-NoSSL\libFrameworkArduino.a(main.cpp.o): In function loopTask(void*)': C:\Users\gam\.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:18: undefined reference tosetup()' C:\Users\gam.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:21: undefined reference to `loop()' collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp32-MQTTGateway-NoSSL\firmware.elf] Error 1

Thanks Geoffrey Mills

GeoffreyMills commented 3 years ago

This is to do with PlatformIO, this is not an issue. I have gone back to the Arduino IDE and made more progess in 2 hours than in 2 days with PlatformIO (again) Closed.. PS: this software looks very interesting!!