Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

acknowledgment from the watch #4

Open
PeVallee opened this issue Jul 10, 2015 · 1 comment
Open

acknowledgment from the watch #4

PeVallee opened this issue Jul 10, 2015 · 1 comment

Comments

@PeVallee
Copy link

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 !!)

@brookpatten brookpatten mentioned this issue Feb 18, 2016
brookpatten added a commit that referenced this issue Feb 20, 2016
Add Support for firmware v3 app installation, app messaging, and bundle processing.  PR #5.  Should resolve issues #2 and #4 .
@brookpatten
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants