This is module is under development do not use it #Using this whenever your raspberry will connect to any preconfigured wifi network. Setting up for sending Mail cd /etc/network/if-up.d
copy script "sendMailScript" (Place in the hcp_iot_sensortag) to the abvoe mentioned folder and make it executable with following command
cp sendMailScript /etc/network/if-up.d chmod +x sendMailScript
#Set up wifi using terminal or GUI of PI
cd /etc/wpa_supplicant/
Edit wpa_cupplicant
sudo nano wpa_supplicant.conf
#copy this at the end of file #you can have multiple entries like this with different name #priority in following structure give the priority to connecting network higher the priority value it will connect first in the list
set username password of working wifi network
#restart the device it will connect to the configured wifi network
network={ ssid="Username" psk="passkey" key_mgmt=WPA-PSK priority=4 }