Wally Tutorial
In this section we’ll walk through creating a product we would like to sell in the future called Wally. It’s a 2 Gang 1/2 Way Wireless Wi-Fi Mini Smart Switch Module.
Please note that only Espressif ESP32, ESP32C3, ESP32S3 are supported
Setup Product Profile
-
Login to your Business Account
-
Goto Products menu and click Add Product.
And enter details about your product.
Then goto Features tab.
Device Type : Sinric Pro device type. Could be a Switch, Fan ect. Same as Sinric Pro portal.
Identifier : We use identifier to refer to this device in the Arduino sketch.
Default Device Name : You can set a default device name for the device. This is the default name shown during the device setup.
Default Device Description : You can set a default device description for the device. This is the default name shown during the device setup.
Display Index : Order which will be shown durnig the device setup.
Click Save and click on Download to download the product provisioing code.
The downloaded example comes pre-loaded with essential features including easy setup, multi-WiFi support, OTA updates, and health checks, allowing you to focus on bringing your unique IoT ideas to life without needing to implement these fundamental functionalities from scratch.
Search for sinricprobusinesssdk in the Arduino Library Manager to install the SinricPro Business SDK.
This would also install ArduinoJson (>=7.0.3), WebSockets (>=2.6.1), NimBLE-Arduino (>=1.4.2), SinricPro (>=3.2.1) as well. Customize the GPIO mappings to fit your specific device configuration, compile and flash the firmware to your hardware.
Next, please change the Arduino IDE Tools -> Partition Scheme -> Minimal SPIFF (1.9MB APP …).
Now we are ready to flash the code.
You can find the complete example code here:
https://github.com/sinricpro/esp32-business-sdk/tree/master/examples/Wally
Now you can setup product via Sinric Pro app
-
Download the Sinric Pro app from Google Play or AppStore.
-
Create an account and login.
-
Click Add and complete the setup process.
Here’s the product provisioning demo: