How to receive ibm watson iot device commands in esp8266?

I want to know how can we receive device commands with ibm iot watson.I cannot find a way to do it.Can someone please help me.The library of watson iot in mongoose does not have any function for this.