Thanks Sogaani. I am trying something like below in adapter.
Things configuration includes two steps
Step 1. Setting up Wifi configuration (This step is kind of provisioning things - similar to blynk app wifi setup)
Step 2. Discovery and add to Gateway (This is normal process similar to other adapers)
Step1 includes below items :
- ESP will expose Soft AP with default name and credential.
- From Gateway i should be able to scan the custom wifi end points and connect with default credential.
- After connecting i should be able to configure AP details so that ESP can now act as a client and connect to configured AP.
- After AP configuration it should show available pins to configure different options against pin similar to RPi Gpio configuration.
- Update the Name of the Thing like Room1, Room2.
Step2 includes below items :
- Scan for WIFI
- Add it as things in Gateway
- Control the things from Gateway.
This is my imaginary idea so just trying to figure out how to add all these configuration pages with new gateway adapter