Here I am posting a cool code with a set of examples that can be used to learn how to use iot functionalities in Tokymaker.
go to https://create.tokylabs.com and load this .xml file there. You will find several self-explanatory examples. Just need to enable the one that you want to compile. Remember to keep the rest disabled.
If you want to know more, go to www.tokylabs.com/learn