In this section you will learn how to configure Smick and write your first sketch.
The Smick configuration (optional) is divided into 4 steps:
In step 5 you will write, execute and memorize your first sketch.
https://github.com/infosmick/Smick_Kit
C:\Smick\CH341SER\SETUP.EXE
C:\Smick\Smick.exe
Use it to program and configure Smick
] wifissid=mySSIDok] wifipass=myPassok] saveok] mqttserver=myServerBrokerok] mqttport=myPortok] mqttuser=myUserBrokerok] mqttpass=myPassBrokerok] mqttin=myInFeedok] mqttout=myOutFeedok] saveok] wifi=1WIFI WiFi connection to 'mySSID' enabledok]Wait a few seconds for it to connect to the Wi-Fi router and the MQTT broker (see how the LED behaves in the various phases)
WIFI connected with IP: 192.168.1.142NTP connecting to 0.it.pool.ntp.orgNTP date and time updated 07-09-2017 00:22:46OTA Check firmware updateOTA no updatesMQTT connecting to m20.cloudmqtt.com:14596MQTT user: smick, client-ID: Smick-217650678MQTT uses user-defined feedsMQTT subscribe to: I35232MQTT publish on: O35232< Conn] Now Smick is connected and ready: start creating your first sketch.
Define the start command
] start=[led=!led #1]okand run it
] startok] The status LED starts to flash every second
You have created your first sketch!
If you wish to memorize it enter the command
] saveokIf you now turn off Smick (extract the USB cable from the PC) and turn it on again (insert the USB cable into the PC) your sketck will be executed automatically.
To understand the command created, stop it with
] stopokand try the following commands:
] led=1okthe LED lights up
] led=0okthe LED goes out
] led=!ledokthe LED lights up because:
] led=!led #1okThe operator #1 repeats to infinity the command that precedes it once a second.