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

+CWJAP_CUR RSSI Value is uint8_t instead of int8_t #359

Open
Maintraxx opened this issue Mar 11, 2022 · 2 comments
Open

+CWJAP_CUR RSSI Value is uint8_t instead of int8_t #359

Maintraxx opened this issue Mar 11, 2022 · 2 comments

Comments

@Maintraxx
Copy link

Maintraxx commented Mar 11, 2022

In the latest commit (1391d15 on 24 Jan), the output of +CWJAP_CUR:<ssid>,<bssid>,<channel>,<rssi> has an invalid RSSI value. It seems, that the output is generated by "%u" instead of "%d".
In my case, the RSSI value is 177.

@ustccw
Copy link
Collaborator

ustccw commented Mar 11, 2022

i checked the code, pretty sure that <channel>, <rssi> are printed by %d. and the rssi is from the following api:

sint8 wifi_station_get_rssi(void);

could you please provide detailed logs for checking.

@Maintraxx
Copy link
Author

AT-Version: V1.7.6
SDK-Version: V3.0.6

Sorry, i meant +CWJAP_CUR

AT+CWJAP_CUR?
+CWJAP_CUR:"FaMiNetwork","74:42:7f:xx:xx:xx",1,176,0

@Maintraxx Maintraxx changed the title +CWJAP RSSI Value is uint8_t instead of int8_t +CWJAP_CUR RSSI Value is uint8_t instead of int8_t Mar 11, 2022
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

No branches or pull requests

2 participants