Announcement

Collapse
No announcement yet.

PHPoC System Files

Collapse
X
Collapse
  •  

  • PHPoC System Files

    To create an PHPoC-powered IoT devices, It needs to write PHPoC Script files and upload it to PHPoC hardware via PHPoC Debugger (PHPoC IDE). To do so, it need to know directory structure of PHPoC and what kind of files can be uploaded to PHPoC devices.

    Directory structure On PHPoC Devices



    We can access this directory and files via PHPoC Debugger. It looks like below:


    ./mmap folder contains setting information and it can not access via PHPoC Debugger. It is only accessible via source code.

    What kind of files can be uploaded to PHPoC devices?
    • Of course, we can upload .php files (called PHP files or PHPoC files) to PHPoC devices. PHPoC files is categorized into three types based on functionalities:
      • Library files, which is usually placed in /lib sub-directory and only contain PHPoC code.
      • Files which is run in system loop. It is usually placed in root directory and and only contain PHPoC code.
      • Files which run in response to HTTP request. This kind of file is usually placed in root directory and is used for Web Application (called, Web Apps). It not only contain PHPoC code but also other code for creating web page (such as HTML code, JavaScript code, CSS code).
    • Other file for Web Apps development such as image files (.png, .jpg, .gif ...), JavaScript files (.js), CSS files (.css). These kinds of files is usually placed in root directory.
    Other Questions
    • Which file is mandatory?
    • Which PHPoC file is run internally in PHPoC system loop?
    • Which PHPoC files is run in response to HTTP request from outside?
    • How to make PHPoC file refuse to serve HTTP request?
    • Is it possible that one file run both on system loop and in response to HTTP request?
    • How to make PHPoC file run in system loop?
    The answers are present in this post How PHPoC System Works
    Last edited by support; 02-09-2018, 09:56 AM.
      Posting comments is disabled.

    Categories

    Collapse

    Latest Articles

    Collapse

    • Arduino - RS-485 Expansion Board
      by support
      PES-2607 is an easy-to-use RS422/RS485 Expansion Board for Arduino Uno and Mega, which allows Arduino to exchange data with serial device via RS422 or RS485.
      Especially, Arduino does NOT use UART pins to communicate with RS422/RS485 expansion board. Therefore, users can use Arduino UART pins for other purposes.
      Moreover, A single Arduino Uno/Mega can communicate with multiple RS422/RS485 expansion boards (up to 14) without using Arduino UART pins.

      Library and examples for...
      11-13-2018, 02:45 PM
    • Arduino - RS-422 Expansion Board
      by support
      PES-2607 is an easy-to-use RS422/RS485 Expansion Board for Arduino Uno and Mega, which allows Arduino to exchange data with serial device via RS422 or RS485.
      Especially, Arduino does NOT use UART pins to communicate with RS422/RS485 expansion board. Therefore, users can use Arduino UART pins for other purposes.
      Moreover, A single Arduino Uno/Mega can communicate with multiple RS422/RS485 expansion boards (up to 14) without using Arduino UART pins.

      Library and examples for...
      11-13-2018, 02:44 PM
    • Arduino - RS-232 Expansion Board
      by support
      PES-2606 is an easy-to-use RS-232 Expansion Board for Arduino Uno and Mega, which allows Arduino to exchange data with serial device via RS-232.
      Especially, Arduino does NOT use UART pins to communicate with RS-232 expansion board. Therefore, users can use Arduino UART pins for other purposes.
      Moreover, A single Arduino Uno/Mega can communicate with multiple RS-232 expansion boards (up to 14) without using Arduino UART pins.

      Library and example for the RS-232 expansion board...
      11-13-2018, 02:43 PM
    • Arduino - Stepper Motor Controller
      by support
      PES-2605 is an easy-to-use stepper motor controller for Arduino Uno and Mega, which uses micro-stepping method to precisely control stepper motor.
      Library and example for the stepper motor controller are part of of PhpocExpansion library for Arduino. The library reference is available here.

      This tutorial shows how to use the step motor controller with an example of PhpocExpansion library for Arduino.


      Hardware Required...
      11-13-2018, 02:41 PM
    • Arduino - DC Motor Controller
      by support
      PES-2604 is an easy-to-use DC motor controller for Arduino Uno and Mega.
      Library and example for the DC motor controller are part of of PhpocExpansion library for Arduino. The library reference is available here.

      This tutorial shows how to use the DC motor controller with an example of PhpocExpansion library for Arduino.


      Hardware Required...
      11-13-2018, 02:40 PM
    • Arduino - Digital Input Board
      by support
      PES-2602 is an easy-to-use 4-port Input Expansion Board for Arduino Uno and Mega, which allows Arduino to monitor state of DC electric device. In addition, it can monitor NPN, PNP and dry contact(relay).
      Library and example for the 4-port input expansion board are part of of PhpocExpansion library for Arduino. The library reference is available here.

      This tutorial shows how to use 4-port input expansion board with an example of PhpocExpansion library for Arduino.

      ...
      11-13-2018, 02:39 PM
    Working...
    X