Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
bce134b5
Commit
bce134b5
authored
Jul 28, 2021
by
Johny Mattsson
Browse files
Fixed incorrect event data in wifi.sta.on('got_ip')
parent
75829169
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/wifi_sta.c
View file @
bce134b5
...
...
@@ -112,8 +112,9 @@ static void sta_authmode (lua_State *L, const void *data)
static
void
sta_got_ip
(
lua_State
*
L
,
const
void
*
data
)
{
const
esp_netif_ip_info_t
*
ip_info
=
(
const
esp_netif_ip_info_t
*
)
data
;
const
ip_event_got_ip_t
*
got_ip_info
=
(
const
ip_event_got_ip_t
*
)
data
;
const
esp_netif_ip_info_t
*
ip_info
=
&
got_ip_info
->
ip_info
;
char
ipstr
[
IP_STR_SZ
]
=
{
0
};
ip4str_esp
(
ipstr
,
&
ip_info
->
ip
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment