Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IoT Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ollie Rhodes
IoT Project
Commits
d26fdf24
Commit
d26fdf24
authored
Feb 02, 2021
by
Ollie Rhodes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Project.ino
parent
05140a2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Project.ino
Project.ino
+2
-4
No files found.
Project.ino
View file @
d26fdf24
#include <WiFiNINA.h>
#include <WiFiNINA.h>
#include "ThingSpeak.h"
#include "ThingSpeak.h"
...
@@ -14,10 +13,9 @@ int lightPin = A1;
...
@@ -14,10 +13,9 @@ int lightPin = A1;
bool
doorOpen
=
false
;
bool
doorOpen
=
false
;
void
setup
()
{
void
setup
()
{
// put your setup code here, to run once:
Serial
.
begin
(
9600
);
Serial
.
begin
(
9600
);
pinMode
(
ledPin
,
OUTPUT
);
pinMode
(
ledPin
,
OUTPUT
);
//pinMode(lightPin, INPUT);
ThingSpeak
.
begin
(
client
);
//Initialize ThingSpeak
ThingSpeak
.
begin
(
client
);
//Initialize ThingSpeak
...
@@ -26,7 +24,7 @@ void setup() {
...
@@ -26,7 +24,7 @@ void setup() {
void
loop
()
{
void
loop
()
{
// put your main code here, to run repeatedly:
if
(
WiFi
.
status
()
!=
WL_CONNECTED
)
{
//for connecting or reconnecting to wifi
if
(
WiFi
.
status
()
!=
WL_CONNECTED
)
{
//for connecting or reconnecting to wifi
Serial
.
print
(
"Attempting to connect to SSID: "
);
Serial
.
print
(
"Attempting to connect to SSID: "
);
Serial
.
println
(
ssid
);
Serial
.
println
(
ssid
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment