-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds wifi events from js #40
Conversation
return 1; | ||
} | ||
|
||
size_t ssidlen = (size_t)lua_tonumber(L, ARG1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you pass the length from lua? You can get the length from colony_toconstdata
.
@@ -56,8 +56,8 @@ void hw_net_config(int should_connect_to_open_ap, int should_use_fast_connect, i | |||
void hw_net_smartconfig_initialize(void); | |||
void hw_net_disable (void); | |||
// extern uint8_t tm_net_firmware_version (); | |||
int hw_net_connect(const char *security_type, const char *ssid, const char *keys); | |||
void hw_net_disconnect (void); | |||
int hw_net_connect(const char *security_type, const char *ssid, const char *keys, size_t ssidlen, size_t keyslen); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ssid_len
and it should follow ssid
property. same with keys_len
Code review completed. Please shout at me to re-review. |
@@ -56,8 +56,8 @@ void hw_net_config(int should_connect_to_open_ap, int should_use_fast_connect, i | |||
void hw_net_smartconfig_initialize(void); | |||
void hw_net_disable (void); | |||
// extern uint8_t tm_net_firmware_version (); | |||
int hw_net_connect(const char *security_type, const char *ssid, const char *keys); | |||
void hw_net_disconnect (void); | |||
int hw_net_connect(const char *security_type, const char *ssid, size_t ssidlen, const char *keys, size_t keyslen); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ssid_len
tho
underscores for all removing extra space
r+ and go |
Goes with tessel/t1-runtime#264