File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ void setup(void)
37
37
}
38
38
39
39
40
+ getMACProcess.runShellCommand (F (" ifconfig wlan0 | grep 134.214 | sed s/.*addr:// | sed s/Bcast:.*//" ));
41
+ while (getMACProcess.available () > 0 ) {
42
+ String IP=String (getMACProcess.readStringUntil (" \n " ));
43
+ IP.trim ();
44
+ Serial.println (" IP address : " +IP);
45
+ }
40
46
41
47
// Start up the library
42
48
sensors.begin ();
@@ -49,9 +55,10 @@ void loop(void)
49
55
50
56
Process getTimeStampProcess;
51
57
getTimeStampProcess.runShellCommand (F (" date -R" ));
58
+ delay (10 );
52
59
String timeStamp=String (" " );
53
60
while (getTimeStampProcess.available () > 0 ) {
54
- timeStamp.concat (String (getTimeStampProcess.readStringUntil ( " \n " )));
61
+ timeStamp.concat (String (getTimeStampProcess.readString ( )));
55
62
}
56
63
timeStamp.trim ();
57
64
Serial.println (" timeStamp : " +timeStamp);
You can’t perform that action at this time.
0 commit comments