Author Topic: Serial Board: Bidirectional API  (Read 929 times)

whitehexagon

  • Full Member
  • ***
  • Posts: 118
    • SunshineApps
Serial Board: Bidirectional API
« on: June 03, 2009, 05:18:27 AM »
I know the team has been busy with the show, but any progress on being able to send data back to the serial smart board via the API?  The current one way interface is a bit limiting.  An idea was mentioned here:

http://www.iobridge.net/forum/index.php/topic,414.msg1666.html#msg1666

Or is there any other programmatically way I can send data back to my serial devices?  ie by pushing custom data somehow into a custom serial widget and sending that?
Home Automation via a native iPhone application.  Search for HomeWatch in iTunes.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: Serial Board: Bidirectional API
« Reply #1 on: June 03, 2009, 07:59:35 PM »
http://www.iobridge.net/wiki/api/javascript-widget-control-api

Yes, you can get data back into the Serial Board. This is done with a Variable Serial Widget. Once you have created this widget you can get messages to serial board from a web page or app. Use the JavaScript API to extend the widget further by using the SerialSetString command.

Code: [Select]
widgetSetString('Q6Vs3RepsH6I','This is my serial message');
ioBridge Support
Community Team

whitehexagon

  • Full Member
  • ***
  • Posts: 118
    • SunshineApps
Re: Serial Board: Bidirectional API
« Reply #2 on: June 04, 2009, 02:46:58 AM »
I'm using a HTTP GET with the serial API to receive data, I was looking to do something similar for the response data. ie a PUSH or POST with a single URL.

Quote
you can get messages to serial board from a web page or app

Do you have an example for doing this from an 'app'? eg perl, python or preferably Java :)
Home Automation via a native iPhone application.  Search for HomeWatch in iTunes.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: Serial Board: Bidirectional API
« Reply #3 on: June 18, 2009, 12:51:55 AM »
This PHP script is starting make your request very easy to implement.

http://www.iobridge.net/forum/index.php/topic,447.0.html
ioBridge Support
Community Team