#include <WiFi.h>
#include <TridentTD_LineNotify.h>
#define LINE_TOKEN "lY4XEzL1UwnHNeE9Ee6ZXg1w4oGAIDVX8zFmneHQfdU"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
WiFi.begin("Wokwi-GUEST", "", 6);
while (WiFi.status() != WL_CONNECTED) {
delay(250);
}
Serial.println("");
Serial.println("WiFi connected");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
LINE.setToken(LINE_TOKEN);
}
void loop() {
float t = random(1.,40.)+(random(1.,9.)/3.);
float h = random(20.,90.)+(random(1.,9.)/3.);
String message = "t = " + String(t) + "\nh = " + String(h);
LINE.notify(message);
Serial.println(message);
Serial.println("Send complete.");
Serial.println("---------------------------------");
delay(1000); // this speeds up the simulation
}