I have read the documentation and copied the example that is on it, but it doesn't work. bt.sendResult() returns false which means that there isn't any onResult callback function or simply the message couldn't be sent.
Does anybody know what the problem is?
Thanks in advance.
That example doesn't check to see if Bridge is running and not busy before sending the message. If Bridge is not running sendResult will return false. It should return true if Bridge is running.
First of all, thank you for your quick answer.
I did the test with Bridge running and not busy(it says "PUMPING" but there isn't any program sending messages), and it keeps returning false and not sending anything