Commit d26fdf24 authored by Ollie Rhodes's avatar Ollie Rhodes

Update Project.ino

parent 05140a2f
#include <WiFiNINA.h>
#include "ThingSpeak.h"
......@@ -14,10 +13,9 @@ int lightPin = A1;
bool doorOpen = false;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
//pinMode(lightPin, INPUT);
ThingSpeak.begin(client); //Initialize ThingSpeak
......@@ -26,7 +24,7 @@ void setup() {
void loop() {
// put your main code here, to run repeatedly:
if (WiFi.status() != WL_CONNECTED) { //for connecting or reconnecting to wifi
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment