intermediate commit

This commit is contained in:
2021-01-12 11:16:33 +01:00
parent 6398ff3460
commit b6dabcd16f
22 changed files with 999 additions and 6 deletions

33
src/net.cpp Normal file
View File

@@ -0,0 +1,33 @@
#include "Arduino.h"
#include "net.h"
#include <WiFi.h>
// Replace with your network credentials
const char *ssid = "poes";
const char *password = "Rijnstraat214";
void netInit(void)
{
Serial.print("Inet init ");
WiFi.begin(ssid, password);
delay(10);
int counter = 30;
while (WiFi.status() != WL_CONNECTED && counter)
{
Serial.print(".");
delay(500);
}
Serial.println("done");
}
bool netIsConnected( void )
{
return (WiFi.status() == WL_CONNECTED);
}
const char* netGetSSID( void )
{
return ssid;
}