Push notifications and Log access

ioBridge Connect Forums RealTime.io Push notifications and Log access

This topic contains 1 reply, has 2 voices, and was last updated by  hans 3 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16480

    trobinson
    Member

    At a high level what I want to accomplish is with my wifi evaluation board push a button and have a rest call made to my custom rest endpoint.Ideally I should not have to pull the logs to see that the button was pushed though I haven’t found indication that this is possible.

    I tried the following

     

    enable log

    http://api.realtime.io/v1/gateway/request/register/write

    {“serial”:”sn”,”channel”:”2″,”register”:”log.enable”,”content”:”1″}

     

    enable trigger

    1. Set the gpio.mode.x of the pin

    2. Set the trig.lval.x and trig.hval.x

    {“serial”:”sn”,”channel”:”2″,”register”:”trig.lval.1″,”content”:”0″}.

    {“serial”:”sn”,”channel”:”2″,”register”:”trig.hval.1″,”content”:”1″}

    3. Set the trig.lid.x and trig.hid.x.

    {“serial”:”sn”,”channel”:”2″,”register”:”trig.lid.1″,”content”:”9000″}

    {“serial”:”sn”,”channel”:”2″,”register”:”trig.hid.1″,”content”:”9001″}

    Set the trig.mode.x according to the Trigger Mode table below.

    {“serial”:”sn”,”channel”:”2″,”register”:”trig.mode.1″,”content”:”1″}

     

    Based on my reading of the api documentation this should log the button push in the log file though I cant find the api for reading the log via realtime.io.  I found plenty of documentation on the consumer level data feed api but that doesn’t appear to be supported by the evaluation board and oem implementations of the realtime.io api.

     

    I was told

    “So with Realtime.io, the Iota module can be configured to push messages to the server when an event happens.  However, nothing else will happen to the message once it hits the server… unless the customer has built an application that is listening to the data stream for those messages and triggers some event.”

    By “the server” I assume they are referring to the realtime.io server is that correct?

    My end goal is to be able to monitor state changes on several thousand devices and make changes via a custom application on a device by device basis.  Your demo app showed that controlling devices remotely isn’t an issue https://apps.realtime.io/app_id/  it all showed real-time monitoring isn’t an issue.  I also verified real time monitoring via the stream api http://api.realtime.io/v1/stream?apikey=apikey

    My problem is that having a constant http connection that is always open and monitored isn’t practical especial when trying to scale to large numbers.

     

    Can you please confirm the following assumptions and questions?

    1)Using a combination of triggers and logging I should be able to log every time an end user pushes a button(via channel 3) then retrieve the log every 5 minutes(via channel 1) to see how many times they pushed the button over that time interval?

    2)The responsibility of getting my data is on my side and it is not possible to be pushed from the realtime.io cloud to my web service automatic?  I hope I’m wrong on this account.

    4)Is the data feed api only for gateway modules?  http://connect.iobridge.com/api/data-feed-api/

    5)Is the Serial API FIFO Buffer only supported for the serial connections?  Is this the only example of a fifo data model and is there any other with a greater than 60 seconds retention policy?

     

    Thank you for your time,

    Tye

    #16836

    hans
    Key Master

    Tye,

    Below are some answers to your questions:

    1)Using a combination of triggers and logging I should be able to log every time an end user pushes a button(via channel 3) then retrieve the log every 5 minutes(via channel 1) to see how many times they pushed the button over that time interval? You are describing the triggers and logging correctly, but currently do not have the logged data exposed API for the eval boards. We have found with our OEM partners that logging is highly custom for each situation. So, we didn’t expose logging for evaluation purposes.

    2)The responsibility of getting my data is on my side and it is not possible to be pushed from the realtime.io cloud to my web service automatic?  I hope I’m wrong on this account.

    4)Is the data feed api only for gateway modules?  http://connect.iobridge.com/api/data-feed-api/ Yes, this API is for ioBridge based gateway modules. The difference being that the target market for the gateways are end-users. The eval board is for demo’ing the functionality.

    5)Is the Serial API FIFO Buffer only supported for the serial connections?  Is this the only example of a fifo data model and is there any other with a greater than 60 seconds retention policy? I will need to ask someone more familiar with the hardware to answer it.

    In terms of working out an OEM relationship with us, please feel free to contact me directly vs. the support queue. We have had trouble keeping up on those messages. My email is hans[at]iobridge.com

    I hope that I can help further,
    Hans

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

click to chat