Thanks for the info, I have implemented all the steps, as described, so far, it is returning a payload of Object Promise, led is not turning on or off. Not sure how to debug. Will do some more testing.
The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, or deceptive request routing).
WOW, it is working, the mac address was wrong, I guess there is more than one mac address, in the app it is not showing up the same one. with your command getdevices, I was able to validate the mac.