-->
Page 1 of 2

Wifi Encryption Type error?

PostPosted: Mon Jul 31, 2017 3:12 pm
by beic
Hi there,

I'm trying to use:

Code: Select allWiFi.encryptionType();


but, I got error message says:
Code: Select allno matching function for call to 'ESP8266WiFiClass::encryptionType()'


I have included
Code: Select all#include <ESP8266WiFi.h>
, using core version 2.3.0

Can someone tell me why is it not working?

Thank you!

Regards

Re: Wifi Encryption Type error?

PostPosted: Tue Aug 01, 2017 8:20 am
by martinayotte
The function WiFi.encryptionType(uint8_t networkItem); need the networkItem argument ...

Check the example how it is used :

esp8266/2.3.0/libraries/ESP8266WiFi/examples/WiFiScan/WiFiScan.ino

Re: Wifi Encryption Type error?

PostPosted: Tue Aug 01, 2017 10:03 am
by beic
martinayotte wrote:The function WiFi.encryptionType(uint8_t networkItem); need the networkItem argument ...

Check the example how it is used :

esp8266/2.3.0/libraries/ESP8266WiFi/examples/WiFiScan/WiFiScan.ino


Hi martinayotte,

Yes, I saw that, but I wish to get encryption type from already connected device to be able to display it.

Regards

Re: Wifi Encryption Type error?

PostPosted: Tue Aug 01, 2017 10:09 am
by martinayotte
I don't think you can, we can only see encryptionType in ESP8266WiFiScanClass.