https://github.com/00kenno/captive_portal_string_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_string_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_string_monitor
- Owner: 00kenno
- Created: 2025-04-10T07:43:32.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-11T01:57:00.000Z (3 months ago)
- Last Synced: 2025-04-11T02:32:44.773Z (3 months ago)
- Topics: esp32, raspberry-pi-pico-2-w, raspberry-pi-pico-w
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Captive_Portal_String_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 | メソッド
インスタンス化することにより,利用可能になります.
ここでは,以下のようにインスタンス化したとします.```cpp
Captive_Portal_String_Monitor monitor;
```### monitor.begin()
setup()内で実行します.
FreeRTOSのxTaskCreateが内部で実行され,WebServerが開始します.```cpp
void setup() {
monitor.begin();
}
```### monitor.update(char *p)
任意の場所で実行できます.
monitorインスタンスが持つ長さが256のchar型の配列(data)にその内容がコピーされます.```cpp
void loop() {
uint32_t now = millis(); // Returns the number of milliseconds passed since the Arduino board began running the current program.
char data[256];
sprintf(data, "%d", now);
monitor.update(data); // Update data in monitor.
delay(100);
}
```