An open API service indexing awesome lists of open source software.

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.

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);
}
```