https://github.com/00kenno/captive_portal_monitor
Arduino library for monitor any string on captive portal. Works with Raspberry Pico W, Pico 2W and ESP32.
https://github.com/00kenno/captive_portal_monitor
esp32 raspberry-pi-pico-2-w raspberry-pi-pico-w
Last synced: 2 months ago
JSON representation
Arduino library for monitor any string on captive portal. Works with Raspberry Pico W, Pico 2W and ESP32.
- Host: GitHub
- URL: https://github.com/00kenno/captive_portal_monitor
- Owner: 00kenno
- Created: 2025-04-10T07:43:32.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-16T04:04:50.000Z (2 months ago)
- Last Synced: 2025-04-16T05:38:04.562Z (2 months ago)
- Topics: esp32, raspberry-pi-pico-2-w, raspberry-pi-pico-w
- Language: C++
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Captive_Portal_Monitor
Arduino library for monitor any string on captive portal.
Works with Raspberry Pico W, Pico 2W and ESP32.このArduinoライブラリを利用すると,キャプティブポータル上で任意の文字列を簡単に表示することができます.
Raspberry Pico W, Pico 2W および ESP32 を搭載するWiFiデバイスでコンパイルが可能です.
ログの取得や動作確認など,あらゆるプロジェクトに応用が可能です.## Methods | メソッド
インスタンス化することにより,利用可能になります.
インスタンス化する際には,char文字列の先頭ポインタを渡す必要があります.
ここでは,以下のようにインスタンス化したとします.```cpp
static char data[256];
Captive_Portal_Monitor monitor(data);
```### monitor.begin()
setup()内で実行します.
FreeRTOSのxTaskCreateStaticが内部で実行され,WebServerが開始します.```cpp
void setup() {
monitor.begin();
}
```### ~~monitor.update(char *p)~~ 廃止
### 更新方法
monitorインスタンスに渡したchar文字列の先頭ポインタ(ここでは「data」)の内容を更新することで表示される内容が変わります.```cpp
void loop() {
uint32_t now = millis(); // Returns the number of milliseconds passed since the Arduino board began running the current program.
sprintf(data, "%d", now);
delay(100);
}
```