'class MQTTClient' has no member named 'state'

Hi guys, I'm doing project for school and I'm getting this error it's humid and temperature sensor. Can someone help to solve this?

C:\Users\serge\Downloads\Print-IP-Address\Print-IP-Address.ino: In function 'void connect()':
Print-IP-Address:161:38: error: 'class MQTTClient' has no member named 'state'
161 | Serial.println(device.mqttClient.state()); // HERE
| ^~~~~
C:\Users\serge\Downloads\Print-IP-Address\Print-IP-Address.ino: In function 'void loop()':
Print-IP-Address:210:38: error: 'class MQTTClient' has no member named 'state'
210 | Serial.println(device.mqttClient.state());
| ^~~~~
Multiple libraries were found for "Losant.h"
Used: C:\Users\serge\Documents\Arduino\libraries\losant-mqtt-arduino-master
Not used: C:\Users\serge\Documents\Arduino\libraries\losant-mqtt-arduino
exit status 1
'class MQTTClient' has no member named 'state'

@skuna003, your topic has been moved to a more suitable location on the forum as this has nothing to do with Avrdude, stk500 or Bootloader.

When your compiler is telling you that something is wrong, it's usually best to post your sketch (using code tags as described in How to get the best out of this forum).

It would also be advisable to always mention which board you are using when you start a new topic.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.