pfodParser
5.0.1
The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections
ESP_PicoW_pfodWebServer.h
Go to the documentation of this file.
1
#ifndef ESP_PICOW_PFOD_WEB_SERVER_H
2
#define ESP_PICOW_PFOD_WEB_SERVER_H
3
4
#if defined(ESP8266) || defined(ESP32) || defined(ARDUINO_ARCH_RP2040) && !defined(__MBED__)
5
6
#include <Arduino.h>
7
#include <
pfodParser.h
>
8
/*
9
ESP_PicoW_pfodWebServer.h
10
* (c)2025 Forward Computing and Control Pty. Ltd.
11
* NSW Australia, www.forward.com.au
12
* This code is not warranted to be fit for any purpose. You may only use it at your own risk.
13
* This generated code may be freely used for both private and commercial use
14
* provided this copyright is maintained.
15
*/
16
17
typedef
void (*handle_mainMenuFnPtr)(
pfodParser
&parser);
18
19
// default serverFromLittleFS == false, need to use pfodWebServer to request dwg
20
// otherwise if serverFromLittleFS == true, starts LittleFS to server all .html / js files
21
// http://<boardIP> will return page with ip filled in for pfodWeb / pfodWebDebug
22
// can still use pfodWebServer even if serverFromLittleFS == true
23
void
start_pfodWebServer(
const
char
* version,
bool
serverFromLittleFS =
false
, uint32_t cacheSec = 0, handle_mainMenuFnPtr fnPtr=NULL );
24
void
handle_pfodWebServer();
// call this each loop()
25
void
pfodWeb_setVersion(
const
char
* version);
// this is called from start_pfodWebServer()
26
Print& getRawDataWriter();
// this is for use when there is not pfodApp server included
27
28
// Optional hooks, called immediately before / after the server streams
29
// a static file from LittleFS (the heavy, radio- and RAM-bound part of
30
// serving the pfodWeb files). Default implementations (weak, in the
31
// .cpp) do nothing. A sketch can provide its own strong definitions -
32
// e.g. to pause BLE scanning on a single-radio chip so WiFi gets the
33
// radio while the ~400 KB of pfodWeb files are served, then resume.
34
// These run in the web-server (loop) context, so keep them short.
35
void
pfodWebFileServeStart();
36
void
pfodWebFileServeEnd();
37
#endif
38
#endif
pfodParser
Definition:
pfodParser.h:48
pfodParser.h
Arduino
pfodParser
src
ESP_PicoW_pfodWebServer.h
Generated by
1.9.1