-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwifi_comm.h
46 lines (37 loc) · 856 Bytes
/
wifi_comm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* wifi_comm.h
* Purple Mountain Majesties
* - Eddy Zhang, Alexander Lea, Connor Nightingale, Jacob Carulli
* Spring 2024
*
*/
#ifndef __WIFI_COMM_H__
#define __WIFI_COMM_H__
#include <Arduino.h>
#include <WiFiNINA.h>
class Wifi_Comm {
public:
void setup();
void chall1_red_bot1();
void chall1_red_bot2();
void chall1_go_bot1();
void chall1_go_bot2();
void chall1_yellow_bot1();
void chall1_yellow_bot2();
void chall1_end();
void printWifiStatus();
void POSTServer(char *bodyMessage);
void GETServer(char *message);
private:
static const char ssid[];
static const char pass[];
static const int keyIndex;
static const int portNumber;
static int status;
static const char server[];
static const char postRoute[];
static const char getRoute[];
WiFiClient client;
bool chall1_bot1 = false;
};
#endif