Skip to content

Commit 285dd94

Browse files
authored
Fix wifi transport setup (#29)
* Fix wifi transport setup * Revert changes on wifi nina
1 parent 2aef8a2 commit 285dd94

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

platform_code/arduino/wifi/micro_ros_transport.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ struct micro_ros_agent_locator {
77
};
88

99
static inline void set_microros_wifi_transports(char * ssid, char * pass, IPAddress agent_ip, uint16_t agent_port){
10-
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
10+
WiFi.begin(ssid, pass);
11+
12+
while (WiFi.status() != WL_CONNECTED) {
1113
delay(500);
1214
}
1315

0 commit comments

Comments
 (0)