01-16-2013 05:39 AM
Any body know how to check and change status (enabled, disabled) of Wifi, NFC, GPS and Bluetooth? I didn't find any api to do that.
Thanks.
01-16-2013 10:56 AM
Not all of those features can be enabled programatically.
Check bps/geolcation.h - have a look at error code 0x00001.
Check nfc/nfc.h - you can get user settings
Check btapi/btdevice.h - look for the word 'power'
Check wifi/wifi_service.h - look for the word 'power'
Thanks.
01-17-2013 02:48 AM
Thanks. I feel a litte disappointed if those features can be enabled or disabled programatically.
01-17-2013 09:42 AM
Some of them can...
01-17-2013 09:49 AM
I've check the NFC from API, and there is no way except turn it off in the menu. About the Wifi, I've used "wifi_set_sta_power()" but nothing happen. Finally, I've no idea about bluetooth. Can you help me?
Thanks.
I forgot something, when I checkde NFC status by "nfc_get_setting()", It was right in the first time, but the second time is wrong. Can you explain to me? I'm a beginner at this ![]()
01-23-2013 02:54 PM
nfc_get_setting shouldn't be responding differently - that sounds like a bug...
01-23-2013 09:58 PM
I have no idea, the NFC is on. The first nfc_get_setting is right, it shows that nfc is on, but i keep checking in a qtimer, the rest of time, it shows off.
04-02-2013 12:20 PM
Anyone know what is the library that I need to link with wifi service?