First page Back Continue Last page Graphics
Polling script
- ScanEngine Explorer Script
- >Assign RepeatTimer = 6
- Repeat
-
- >Assign IP = 192.168.2.252 //PIC board
- >Assign HTTPPage = jsdata.cgi
- >Assign HTTPSitename = "Well Monitor"
- >Assign HTTPUsername:Password = admin:pw
- Fetch
-
- If HTTPReplyCode == 200
- // process received data
- Else
- // no data received
- EndIf
- The ScanEngine Explorer script is instructed to run every 6 seconds.
- Every time it runs, it will send an http FETCH to the IP assigned to the PIC board, for the webpage I named “jsdata.cgi” which is what I named a webpage in the PIC
- The script tests the reply code, such that it can execute different code when the PIC responds vs when there is no response
- The modtronix base web server function will respond to http fetch requests. The code set in the modtronix PIC should include a web page with embedded macros to place latest measured values in an http fetched response.