Skip to content
Reivaxy edited this page May 26, 2018 · 24 revisions

Welcome to the Xiot Framework wiki!

The purpose of this wiki is to help anyone interested to use and/or collaborate to this project.

Let's first look at how it's working right now, from a user perspective.

To have something usefull, you will need to have at least two esp8266 based boards. I obviously haven't tested them all, but a few should be compatible, and I'll list the one I've actually successfully used.

One one, you will flash the code in the iotinator directory, and it will be the "master".

On the other one you will flash one of the available modules: iotSwitch, iotXenia, iotLeak...

For now (2018/05/25) only iotSwitch can actually be useful the others are work in progress and "forget me not" landmarks.

So let's say you flashed iotSwitch.

What happens next?

Here is an illustrated chronology:

iotinator action/screen Module action/screen
Power iotinator up, first time after flashing the software.
The screen is showing the module's name "iotinator", then a steady "outbound" wifi icon, then the default ssid "iotinator" opened by the module as an Access Point, and the "Please initialize" message.
"Please initialize" means you need to initialize the master module, and to do that just connect your mobile phone to the "iotinator" wifi network, with password "iotinator", and put the displayed ip in your browser's url bar

Fill in the fields, hit the submit button, your settings will be saved in the EEPROM.
Once initialized, the module will alternatively display the new ssid (I chose to call it "XiotWifi" here) and it's ip on it, as well as your home wifi ssid and it# s ip on it. After a few seconds, it also should display the current date and time.
Yes, it is connected to your home wifi AND exposes its own ssid!
Power the switch module up, first time after flashing the software.
The screen will show the module's title, "Switch", a blinking "inbound" wifi icon and a message saying it's trying to connect to the "iotinator" ssid. But the master no longer exposes the "iotinator" ssid !
Press the reset button on iotinator. It will then reopen the default "iotinator" ssid for 30 seconds and display a second counter in the bottom right corner
The Switch module was just waiting for a "iotinator" wifi network! It will then connect to it!
The master module got the Switch module registration request, and sends back the ssid to chose to use: "XiotWifi"
The Switch module got the configuration when registering, and now switches to the new ssid "XiotWifi", and can display the time it got from iotinator

We can see the name of the module was modified. How come!? It's just that I have another Switch module which connected first. So iotinator will rename the second one to the first name available.
Once the 30 seconds are over, iotinator reopens the ssid you chose
Clone this wiki locally