problem with nodemcu

Seems to me that these are functions that you need to implement in your code as it seems that they are trying to be used as events or callbacks.