andriyadi / AzureIoTHubMQTTClient

Azure IoT Hub client for ESP8266 using MQTT
31 stars 17 forks source link

Non-const error #16

Open MoesLab opened 3 years ago

MoesLab commented 3 years ago

Hi There, I am compiling the code in VS code for platform IO, and there are a bunch of errors can you look at this pic and tell me how can I correct them, please?

platformio error
MoesLab commented 3 years ago

can this be modified for Json V6.x?

maxgerhardt commented 3 years ago

Works for me with the versions

Dependency Graph
|-- <Adafruit BusIO> 1.7.2
|   |-- <Wire> 1.0
|   |-- <SPI> 1.0
|-- <Adafruit BMP085 Library> 1.2.0
|   |-- <Adafruit BusIO> 1.7.2
|   |   |-- <Wire> 1.0
|   |   |-- <SPI> 1.0
|   |-- <Wire> 1.0
|-- <Time> 1.6.0
|-- <ESP8266WiFi> 1.0
|-- <ArduinoJson> 5.13.4
|-- <Ethernet(esp8266)> 1.0.4
|   |-- <SPI> 1.0
|-- <SPI> 1.0

derived from the modified platformio.ini

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
; this board does not have defaulte SCL and SDA pins for I2C
; and gives compilations errors. --> simply use nodemcu.
;board = espectro
framework = arduino
build_flags = -D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH 
lib_deps =
     adafruit/Adafruit BusIO @ ^1.7.2
     adafruit/Adafruit BMP085 Library @ ^1.2.0
     paulstoffregen/Time @ ^1.6