Skip to content

Commit

Permalink
Fix redundant callback in ap_sta sample code
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Guyot <[email protected]>
  • Loading branch information
pguyot committed Oct 7, 2023
1 parent 67adefa commit e45bba8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/erlang/esp32/ap_sta_network.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ start() ->
{ap_started, fun ap_started/0},
{sta_connected, fun sta_connected/1},
{sta_ip_assigned, fun sta_ip_assigned/1},
{sta_disconnected, fun sta_disconnected/1},
{sta_ip_assigned, fun ap_sta_ip_assigned/1}
{sta_disconnected, fun sta_disconnected/1}
]},
{sta, [
{ssid, <<"myssid">>},
Expand Down Expand Up @@ -78,8 +77,5 @@ got_ip(IpInfo) ->
disconnected() ->
io:format("STA disconnected.~n").

ap_sta_ip_assigned(Address) ->
io:format("AP assigned STA address ~p~n", [Address]).

sntp_synchronized({TVSec, TVUsec}) ->
io:format("Synchronized time with SNTP server. TVSec=~p TVUsec=~p~n", [TVSec, TVUsec]).

0 comments on commit e45bba8

Please sign in to comment.