Jumpstarts for Sensor Status Monitoring Service?

Questions about developing the edge server core as well as applications

Moderators: Matt, kyle

Post Reply
karthik9891
Posts: 16
Joined: Tue Jun 14, 2016 2:02 am

Jumpstarts for Sensor Status Monitoring Service?

Post by karthik9891 » Wed Jun 22, 2016 12:17 pm

Hello All,

Is there any jumpstarts available for sensor status monitoring service?

From my rifidi app, I'm trying to subscribe to a sensor subscriber to monitor for any sensor property changes. Here is my piece of code that subscribes to the same.

RFIDIntelSensorSubscriber sub = new RFIDIntelSensorSubscriber();
Set<String> sensorsToMonitor = new HashSet<String>();
sensorsToMonitor.add("MotoLLRP");
this.sensorMonitoringService.subscribe(sub,sensorsToMonitor);


and I've a sensor subscriber with the following nomenclature


public void handleSensorStatusEvent(SensorStatusEvent arg0) {
System.out.println("Sensor ID changed "+arg0.getSensorID());
System.out.println("Sensor Timestamp changed "+arg0.getTimestamp());
}


As per the developer guide, it says that the subscribers will be notified in case of any sensor changes. I'm trying to disconnect/connect the session to the sensor. Ideally, I'm expecting my handleSensorStatusEvent to trigger whenever my session either connects or disconnects. But this doesn't happen.

Any insights?

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: Jumpstarts for Sensor Status Monitoring Service?

Post by bppause » Wed Jun 22, 2016 1:07 pm

I've looped in teh engineering team to see if there is a way to handle in the way you describe and will post on this thread

Currently in dashboard ui will poll the rest readstatus rest command for status - http://wiki.rifidi.net/index.php?title= ... nd_example

the readerstatus rest command uses the Rifidi internal api -http://wiki.rifidi.net/index.php?title= ... _Jumpstart

also here is the source of all Rifidi Rest commands where Rifidi internal api is used - https://transcends.svn.cloudforge.com/r ... tImpl.java

Note: it's on the near term roadmap to publish standard reader, application and antenna events to MQTT topics for more of an event driven model

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests