News:

  • October 16, 2026, 11:24:52 AM

Login with username, password and session length

Author Topic: Input Wanted! BRX HTTP features...  (Read 36564 times)

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Input Wanted! BRX HTTP features...
« Reply #15 on: August 09, 2020, 10:37:29 PM »
We are launching new products this Fall, and API will be in the associated release.
Excellent!
Any possibility of sending bits and bytes to the PLC via an API?  Perhaps sandboxed like MC and MHR, et al?

deep6ixed

  • Hero Member
  • *****
  • Posts: 105
Re: Input Wanted! BRX HTTP features...
« Reply #16 on: August 11, 2020, 08:18:02 AM »
Been chewing on this web service idea, but i don't have access to DmD at the moment.  What can the json instructions do.

Been doing a lot of work with web app design and I wonder how much you could actually run client side via JS and have the DoMore serve the html static and a small JS file that handles all the major lifting from the browser.

Something along the lines of a static HTML / JS you'd upload into the cpu filesysyem and then the broswer would then update to and from cpu via JSON.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6177
  • Yes Pinky, Do-more will control the world!
Re: Input Wanted! BRX HTTP features...
« Reply #17 on: August 11, 2020, 11:01:52 AM »
Been chewing on this web service idea, but i don't have access to DmD at the moment.  What can the json instructions do.

Been doing a lot of work with web app design and I wonder how much you could actually run client side via JS and have the DoMore serve the html static and a small JS file that handles all the major lifting from the browser.

Something along the lines of a static HTML / JS you'd upload into the cpu filesysyem and then the broswer would then update to and from cpu via JSON.

The JSON instructions are for building and parsing JSON records.

The API returns PLC data as JSON records, appropriate for JavaScript running on the client. Our current plan is to roll out the API and initial web server this fall, and then next year roll out an instructions for generating user web pages that will heavily use JS to drive client side stuff.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6177
  • Yes Pinky, Do-more will control the world!
Re: Input Wanted! BRX HTTP features...
« Reply #18 on: August 11, 2020, 11:03:52 AM »
Excellent!
Any possibility of sending bits and bytes to the PLC via an API?  Perhaps sandboxed like MC and MHR, et al?

Not in the initial release, but it is something we want to do. One of our concerns was exposing everything via the API, but I like the sandbox idea. We will probably use some form of API key as well.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Input Wanted! BRX HTTP features...
« Reply #19 on: August 11, 2020, 11:12:22 AM »
Been chewing on this web service idea, but i don't have access to DmD at the moment.  What can the json instructions do.

Been doing a lot of work with web app design and I wonder how much you could actually run client side via JS and have the DoMore serve the html static and a small JS file that handles all the major lifting from the browser.

Something along the lines of a static HTML / JS you'd upload into the cpu filesysyem and then the broswer would then update to and from cpu via JSON.
There's always plcnut's method of web serving: https://forum.hosteng.com/index.php?topic=1117.0

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Input Wanted! BRX HTTP features...
« Reply #20 on: August 11, 2020, 11:12:57 AM »
Excellent!
Any possibility of sending bits and bytes to the PLC via an API?  Perhaps sandboxed like MC and MHR, et al?

Not in the initial release, but it is something we want to do. One of our concerns was exposing everything via the API, but I like the sandbox idea. We will probably use some form of API key as well.
Please do!

johnr

  • Full Member
  • ***
  • Posts: 44
Re: Input Wanted! BRX HTTP features...
« Reply #21 on: August 11, 2020, 12:24:53 PM »
Does that mean that the new POM would also be 10/100 Mbps?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6177
  • Yes Pinky, Do-more will control the world!
Re: Input Wanted! BRX HTTP features...
« Reply #22 on: August 11, 2020, 04:24:17 PM »
Does that mean that the new POM would also be 10/100 Mbps?

It is.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

deep6ixed

  • Hero Member
  • *****
  • Posts: 105
Re: Input Wanted! BRX HTTP features...
« Reply #23 on: August 12, 2020, 05:57:18 AM »
The JSON instructions are for building and parsing JSON records.

The API returns PLC data as JSON records, appropriate for JavaScript running on the client. Our current plan is to roll out the API and initial web server this fall, and then next year roll out an instructions for generating user web pages that will heavily use JS to drive client side stuff.

This sounds exciting.

robert.beal

  • Newbie
  • *
  • Posts: 9
Re: Input Wanted! BRX HTTP features...
« Reply #24 on: October 26, 2021, 01:31:15 PM »
Any update on being able to send bits and bytes to the PLC via the Web API? I can read from the API but I cannot change the values so I can interact with the plc code.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6177
  • Yes Pinky, Do-more will control the world!
Re: Input Wanted! BRX HTTP features...
« Reply #25 on: October 26, 2021, 01:36:05 PM »
Any update on being able to send bits and bytes to the PLC via the Web API? I can read from the API but I cannot change the values so I can interact with the plc code.

We do plan to add it, but the primary concern is how to do it securely. Since (for now) the webserver isn't encrypted, we have concerns that even using an API key or something like that is still too exposed.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

robert.beal

  • Newbie
  • *
  • Posts: 9
Re: Input Wanted! BRX HTTP features...
« Reply #26 on: October 26, 2021, 05:15:53 PM »
Thanks, hopefully soon we will get there.