Sequence of events happening in Events Demo

37 views
Skip to first unread message

Akash R Vasishta

unread,
Apr 29, 2016, 6:30:15 AM4/29/16
to Kaa project
Hello,
I wanted to know the sequence of events happening in CEventDemo. I run CEventDemo on edison 1st, it prints the number of event listeners received, and waits for another device to run the EventDemo code. I think the edison has sent the info_request and is now waiting for a response from another device. Then I start CEventDemo on Raspberry Pi and itll respond to the request by edison. I have attached the outputs of both the boards and I want to know What is the sequence of messages being exchanged for the edison or RPi to print those outputs. I am expecting something along the lines of the ESP8266 with Android (as shown in Fig sequenceofevents.png).

I would also like to know how can I make the EventDemo continuous as it happens only once and stops. Ill have to exit from the code and run it again to receive another event. I want the receiver to continuously keep listening for events from a sender. 

It would be very helpful if anyone can answer this question as soon as possible.

Thank you
raspi.png
edison.png
sequenceofevents.png

Alex Gamov

unread,
May 5, 2016, 6:15:16 AM5/5/16
to Kaa project
Hello 

To understand message flow take a look at the Event feature description (http://docs.kaaproject.org/display/KAA/Events#Events-Eventrouting) and the step-by-step programming guide (http://docs.kaaproject.org/display/KAA/Messaging+across+endpoints). 

The reason you receive just one event is that application sends it just once (actually not once, but on each 'kaa_on_thermostat_info_request' which is send by application one time). Programming guide provide pretty detail information on how to send/receive events. Hope it'll help. 
Regards, 
Alexey

Sai Manikanta

unread,
Jul 19, 2018, 6:32:43 AM7/19/18
to Kaa project
Hello,

I have gone through these links and created SDK  for messaging to two end points in iOS.
Sending events from one end point is working fine.
But other end point is not receiving events also it showing "KAA CLIENT PROPERTIES ERROR: EVENTS ARE NOT GETTING WITH SEQUENCE NUMBER .. can not get with 0 and int".
Can any one please help me resolve this issue.
Reply all
Reply to author
Forward
0 new messages