0

"Simple Networking" with Heartbeat?



Is it possible to use the "Simple Networking" option but still have the HD210 report a heartbeat in some manner?

Is it possible to customize the method of reporting the heartbeat? How does it currently work?

Thanks!

5 comments

  • 0
    Avatar
    RokuLyndon


    There isn't currently a heartbeat with simple networking, but all heartbeat is is an http post. So, if you're using BrightAuthor, you could modify the autorun script to add an http post to a web server. That web server would have to be configured to listen for http posts, and to process the post once it occurs.
  • 0
    Avatar
    dpulse


    Perfect!



    "RokuLyndon" wrote:

    modify the autorun script to add an http post to a web server.




    Hmm, could you give me an example of the syntax used to do this?
  • 0
    Avatar
    dpulse


    lil' help?



    I just need a basic idea of what kind of code I'd be looking at here, just a little hand-holding.



    Thanks!
  • 0
    Avatar
    sparkynobb


    I would like to see examples of how to do this also?
  • 0
    Avatar
    RokuLyndon


    When you setup simple networking, it automatically pings the server at the same frequency that you've set it to check for content updates. So, if you set it to check every 5 minutes, it pings the server looking for an updated current-sync.xml every 5 minutes.

    This function:

    Sub StartSync(syncType$ As String)

    Is the one that's called every time the brightsign checks in for an updated sync file. So, you can add an http post to the bottom of this function, before the return, so that each time it's called, you are posting to your server.

    For example, this is a basic example of what you could add to this function:

    mypost = CreateObject("roUrlTransfer")
    mypost.SetURL("http://www.mywebsite.com/post.php")
    mypost.PostFromString("my post message")



    You can use an AsyncPostFromString otherwise it will stall if the unit can't connect to you server. You can also use a PostFromFile if you want to post an xml file or text file.
Please sign in to leave a comment.