This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp [2018/09/01 09:13] jeff Improved purpose as intro to uPHP |
uphp [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======uPHP====== | ======uPHP====== | ||
- | This section contains details on how to use the Wattmon built in scripting language to customize it for any application. This page is an introduction to Programming | + | The [[hardware: |
- | =====Programming | + | This section contains an introduction and detailed guide for using the built in scripting language to customize the [[hardware: |
- | "Programming" | + | * [[uphp: |
- | The Wattmon is built on a scripting language that is syntactically identical to PHP((PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language. PHP stands for "PHP: Hypertext Preprocessor." | + | * [[uphp:uPHP Language Basics]] |
- | =====Why uPHP? | + | |
- | + | * [[uphp:modbus_functions|uPHP Serial and Modbus Functions]] - Serial and Modbus Functions | |
- | First perhaps it would be good to explain a bit about how and why we chose PHP. The goal of the Wattmon is to provide a highly flexible platform that can be customized for pretty much any application imaginable, keeping in mind very low memory availability. | + | |
- | + | ||
- | The Wattmon interface is primarily browser based, and generates HTML pages on the fly from uPHP scripts. | + | |
- | + | ||
- | ====Challenges==== | + | |
- | + | ||
- | The biggest challenge with the scripting language is its memory limitation. | + | |
- | + | ||
- | The [[hardware:wattmons:WattmonMEGA]] processor has a total of 512KB of RAM (4 times as much as for the PRO and the MINI). Memory limitations are much less of a challenge when scripting for the MEGA. | + | |
- | + | ||
- | ====Benefits==== | + | |
- | + | ||
- | Having a scripting language that lets you modify and edit your program remotely is a very powerful thing. | + | |
- | + | ||
- | =====Further Information on uPHP===== | + | |
- | + | ||
- | Of interest to those who want to dig deeper and advance into making tweaks and changes to the system: | + | |
- | + | ||
- | [[uphp: | + | |
- | + | ||
- | [[uphp:functions|uPHP Function Reference]] | + | |