Compare commits
No commits in common. "f37bae70e97c22b71ef49d184a79b543d8895b71" and "f979f8e3dfc5594630d24d2d10de5a144d6774cf" have entirely different histories.
f37bae70e9
...
f979f8e3df
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,6 +0,0 @@
|
|||
20250815_basic_finder.ino/config_secrets.h
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -46,15 +46,10 @@ void setup(void) {
|
|||
|
||||
Serial.begin(115200);
|
||||
|
||||
pinMode(LED_PIN, OUTPUT);
|
||||
|
||||
if (wifi_set_main()) {
|
||||
Serial.println("Connect WIFI SUCCESS");
|
||||
connected = true;
|
||||
|
||||
} else {
|
||||
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
Serial.println("Connect WIFI FAULT");
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +59,7 @@ void setup(void) {
|
|||
gpsSerial.begin(GPS_BAUD, SERIAL_8N1, RXD2, TXD2);
|
||||
Serial.println("Serial 2 started at 9600 baud rate");
|
||||
|
||||
|
||||
pinMode(LED_PIN, OUTPUT);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -84,12 +79,9 @@ void drawTriangles(byte i, char *time, char *distanceString) {
|
|||
bool doHttpRequest(char *payload, char *latitude, char *longitude, char *gpsTime) {
|
||||
HTTPClient http;
|
||||
// Change space to 0
|
||||
*(latitude + 6) = '0';
|
||||
|
||||
|
||||
if(*(latitude + 6) < '0' || *(latitude + 6) > '9')
|
||||
*(latitude + 6) = '0';
|
||||
|
||||
String serverPath = webserviceAddress + "?long=" + longitude + "&lat=" + latitude + "&id=" + OWN_ID + "&req_id=" + REQ_ID + "&gpsDateTime=" + gpsTime + "&passkey=" + SERVER_PASSKEY;
|
||||
String serverPath = webserviceAddress + "?long=" + longitude + "&lat=" + latitude + "&id=" + OWN_ID + "&req_id=" + REQ_ID + "&gpsDateTime=" + gpsTime;
|
||||
|
||||
Serial.println(serverPath);
|
||||
|
||||
|
|
@ -146,12 +138,6 @@ void setDistanceBearingString(char *time, char *distance, byte *bearing, const c
|
|||
|
||||
|
||||
void loop(void) {
|
||||
if(connected) {
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
}
|
||||
else {
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
}
|
||||
while (gpsSerial.available() > 0) {
|
||||
// get the byte data from the GPS
|
||||
char gpsData = gpsSerial.read();
|
||||
|
|
@ -202,7 +188,9 @@ void loop(void) {
|
|||
|
||||
Serial.println("-------------------------------");
|
||||
|
||||
delay(3000);
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
|
||||
delay(5000);
|
||||
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -431,21 +431,6 @@ int wifi_set_main()
|
|||
|
||||
Serial.println("Please connect \"Makerfabs_ap\".");
|
||||
Serial.println("And visit 192.168.4.1 to set WIFI.");
|
||||
|
||||
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
delay(100);
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
delay(100);
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
delay(100);
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
delay(100);
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
delay(100);
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
delay(100);
|
||||
|
||||
ap_init();
|
||||
while (wifi_config_server())
|
||||
;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user