Skip to content
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

Merged
merged 10 commits into from
Jul 19, 2014
Merged

adds wifi events from js #40

merged 10 commits into from
Jul 19, 2014

Conversation

jiahuang
Copy link
Contributor

@jiahuang jiahuang commented Jul 9, 2014

return 1;
}

size_t ssidlen = (size_t)lua_tonumber(L, ARG1);
Copy link
Member

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.

@jiahuang jiahuang changed the title [NRY] adds wifi events from js adds wifi events from js Jul 17, 2014
@@ -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);
Copy link
Member

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

@tcr
Copy link
Member

tcr commented Jul 17, 2014

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ssid_len tho

@tcr
Copy link
Member

tcr commented Jul 19, 2014

r+ and go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants