Announcement

Collapse
No announcement yet.

Visitor message from wordsworthmore

Collapse

Profile Sidebar

Collapse
support
support
Super Moderator
Last Activity: 05-17-2022, 02:26 PM
Joined: 11-23-2017
Location:

  • Visitor message from wordsworthmore

    wordsworthmore
    wordsworthmore posted a Visitor Message for support
    Hi,

    I came across your post https://forum.phpoc.com/articles/tut...-via-websocket. As well as
    https://create.arduino.cc/projecthub...bsocket-056f16

    I have a quick question. If I have many sensors, Is it possible to use this code on a php server, and maintain a record of which sensors are connected, on a database, and routinely check if the connection is maintained? And if some device closes the connection, we can have a callback function to do some things on the php server?

  • support
    commented
    Hello there.
    The code is written in PHPoC, a programming language developed by us:
    "PHPoC is a programming language developed based on widely-used PHP language, that makes it become not only a Web development language but also the general-purpose programming language for IoT. The syntax is almost the same as PHP, but adapted for the embedded system. PHPoC inherits almost core functions from PHP. Especially, PHPoC adds new functions, which are used to interact with hardware peripherals such as I/O, UART, I2C, SPI, ADC, TIMER/COUNTER, RTC and so on."

    For more information, you can refer to this link: https://www.phpoc.com/what_is_phpoc.php
    So, it probably won't work on a PHP Server. It needs to be uploaded to a PHPoC device to make it work.

    Thank you
  • Leave a comment:

Working...
X