PebbleSharp icon indicating copy to clipboard operation
PebbleSharp copied to clipboard

acknowledgment from the watch

Open PeVallee opened this issue 10 years ago • 1 comments

Hi, I need to communicate from a PC to a Pebble Watch (I have a PLC (Programmable Logic Controller, for industrial use) connected to a PC and when it goes on fault, it should send a message to a Pebble Watch, the Watch should send an acknowledgment back to the PC to reset a TAG in the PLC)

I used your libray to do so, but when I came to the "answer" step, I realize that this feature wasn't developped. I want to developped something that will do the job : but I don't know how... I though I could just send an Array of String to the watch , indexes 0 and 1 will be the sender and the body of the message and the other indexes will be the the answer from the Watch.

When a message is send, listenners are enable for the Watch's button ( Up, Down and Select ) Up and Down will let the user travel through the responseArray and select will save the index)

But to do so, I need to know where is implement the method Write from the object _blueToothConnection ( ReadOnly IBluetoothConnection )

(is my solution right or you have a better idea ?! )

Best regards, Pève

(P.S. GREAT JOB FOR YOUR WORK !!)

PeVallee avatar Jul 10 '15 13:07 PeVallee

Take a look at the example console app. Specifically selectedPebble.RegisterCallback<AppMessagePacket>(ReceiveAppMessage); Can be used to receive appmessages from the watch.

brookpatten avatar Feb 20 '16 20:02 brookpatten