Skip to content

Commit e640a01

Browse files
committed
Updated to work with latest (SMP) AtomVM master
1 parent 3f52835 commit e640a01

File tree

3 files changed

+281
-176
lines changed

3 files changed

+281
-176
lines changed

examples/mqtt_client_example/src/mqtt_client_example.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ start_network(StaConfig) ->
5858
case network:wait_for_sta(StaConfig) of
5959
{ok, {Address, Netmask, Gateway}} ->
6060
io:format(
61-
"Acquired IP address: ~s Netmask: ~s Gateway: ~s~n",
61+
"Acquired IP address: ~p Netmask: ~p Gateway: ~p~n",
6262
[Address, Netmask, Gateway]
6363
),
6464
ok;
@@ -87,7 +87,7 @@ publish_loop(MQTT, Topic, Seq) ->
8787
C:E:S ->
8888
io:format("Error in publish: ~p:~p~p~n", [C, E, S])
8989
end,
90-
timer:sleep(1000),
90+
timer:sleep(5000),
9191
publish_loop(MQTT, Topic, Seq + 1).
9292

9393
handle_published(MQTT, Topic, MsgId) ->

0 commit comments

Comments
 (0)