-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v0.7.0-rc.7' into develop. Rebuilt wiced agains…
…t commit 0eeac588ae5c48739f051db674fcd031b9ccecf2 # hal/src/photon/lib/FreeRTOS/Lib_DNS_Redirect_Daemon.a # hal/src/photon/lib/Lib_HTTP_Server.a
- Loading branch information
Showing
53 changed files
with
265 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-104 Bytes
(100%)
hal/src/photon/lib/FreeRTOS/STM32F2xx_Peripheral_Drivers.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
hal/src/photon/lib/FreeRTOS/WWD_FreeRTOS_Interface_BCM9WCDUSI09.a
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
hal/src/photon/lib/FreeRTOS/WWD_FreeRTOS_Interface_BCM9WCDUSI14.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
user/tests/app/particle_connect_semi_automatic_issue_1399/test.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#include "application.h" | ||
|
||
SYSTEM_MODE(SEMI_AUTOMATIC); | ||
SYSTEM_THREAD(DISABLED); | ||
|
||
LOG_SOURCE_CATEGORY("test") | ||
|
||
namespace { | ||
|
||
SerialLogHandler logHandler(LOG_LEVEL_NONE, { | ||
{ "test", LOG_LEVEL_ALL } | ||
}); | ||
|
||
static bool loopExecuted = false; | ||
static bool testFinished = false; | ||
|
||
static void fail() { | ||
testFinished = true; | ||
RGB.control(true); | ||
RGB.color(0xff0000); // Red | ||
LOG(ERROR, "TEST FAILED"); | ||
} | ||
|
||
static void pass() { | ||
testFinished = true; | ||
RGB.control(true); | ||
RGB.color(0x00ff00); // Green | ||
LOG(INFO, "TEST SUCCEEDED"); | ||
} | ||
|
||
} // namespace | ||
|
||
void setup() { | ||
waitUntil(Serial.isConnected); | ||
|
||
LOG(INFO, "Test started"); | ||
LOG(INFO, "Connecting to WiFi network"); | ||
WiFi.on(); | ||
WiFi.connect(); | ||
waitUntil(WiFi.ready); | ||
LOG(INFO, "Connected to WiFi network"); | ||
|
||
LOG(INFO, "Connecting to the cloud"); | ||
Particle.connect(); | ||
if (Particle.connected()) { | ||
fail(); | ||
} | ||
} | ||
|
||
void loop() { | ||
if (testFinished) { | ||
return; | ||
} | ||
|
||
if (!loopExecuted) { | ||
loopExecuted = true; | ||
|
||
// First time the loop is running. We should be connected to the cloud | ||
if (!Particle.connected()) { | ||
fail(); | ||
return; | ||
} | ||
|
||
LOG(INFO, "Connected to the cloud"); | ||
|
||
// Disconnect from the cloud | ||
LOG(INFO, "Disconnecting from the cloud"); | ||
Particle.disconnect(); | ||
waitUntil(Particle.disconnected); | ||
LOG(INFO, "Disconnected from the cloud"); | ||
|
||
LOG(INFO, "Connecting to the cloud"); | ||
Particle.connect(); | ||
} else { | ||
// Second time the loop is running, we should also be connected to the cloud again | ||
if (!Particle.connected()) { | ||
fail(); | ||
return; | ||
} | ||
LOG(INFO, "Connected to the cloud"); | ||
|
||
pass(); | ||
} | ||
} |
Oops, something went wrong.