Help with a code

Hello People

There is a project

I have a problem with a code.

Arduino: 1.8.2 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Serial, None, Only Sketch, 115200"

Build options changed, rebuilding all
E:\Stock\Downloads\esp8266RemoteButtonPressSimple\esp8266RemoteButtonPressSimple.ino: In function 'void reconnect()':

esp8266RemoteButtonPressSimple:129: error: 'class PubSubClient' has no member named 'state'



E:\Stock\Downloads\esp8266RemoteButtonPressSimple\esp8266RemoteButtonPressSimple.ino: In function 'void setup()':

esp8266RemoteButtonPressSimple:152: error: 'class PubSubClient' has no member named 'setServer'

client.setServer(mqttServer, 1883);


esp8266RemoteButtonPressSimple:153: error: 'class PubSubClient' has no member named 'setCallback'



exit status 1
'class PubSubClient' has no member named 'state'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Please help me!!

Compiles for me just fine, do you have the proper library installed ?