Hi everyone, I made a simple Android app and modified a AJ_LEDService program so I was able to send signals from the phone to Arduino. Now I am trying to send input signals from Arduino back to the phone and I am kind of stuck there. I have written an Arduino sketch for it using, digitalRead(inPin) function but I am a bit stuck on AllJoyn part. Could somebody let me know how to go about this, or even better provide a simple example.
Also, I am a bit confused about AJ_APP_MESSAGE_ID, what if i want to have two message identifiers for the same method? For example: #define APP1 AJ_APP_MESSAGE_ID(0,0,1) #define APP2 AJ_APP_MESSAGE_ID(0,0,1) ....... it gives me a "duplicate case error".
Thanks in advance! Regards.