<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Velez</id>
	<title>OneM2M-Hackathon-Dallas-2018 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Velez"/>
	<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Special:Contributions/Velez"/>
	<updated>2026-04-14T23:43:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=144</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=144"/>
		<updated>2018-03-09T15:43:42Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya/onem2m-demo&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
 IMPORTANT:&lt;br /&gt;
 To run the platform on Windows, Please modify modify the start.bat command line to be this:&lt;br /&gt;
 java -jar -ea -Declipse.ignoreApp=true -Dosgi.clean=true -Ddebug=true plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -console -noExit    &lt;br /&gt;
 Essentially put the full launcher path and remove the u in front of java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=143</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=143"/>
		<updated>2018-03-09T15:42:33Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya/onem2m-demo&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
IMPORTANT:&lt;br /&gt;
 To run the platform on Windows, Please modify modify the start.bat command line to be this:&lt;br /&gt;
 java -jar -ea -Declipse.ignoreApp=true -Dosgi.clean=true -Ddebug=true plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -console -noExit    &lt;br /&gt;
Essentially put the full launcher path and remove the u in front of java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=142</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=142"/>
		<updated>2018-03-09T15:41:10Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya/onem2m-demo&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
 &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: To run the platform on Windows, Please modify modify the start.bat command line to be this: java -jar -ea -Declipse.ignoreApp=true -Dosgi.clean=true -Ddebug=true plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -console -noExit    Essentially put the full launcher path and remove the u in front of java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=141</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=141"/>
		<updated>2018-03-09T15:39:31Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya/onem2m-demo&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
 &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: To run the platform on windows i needed to modify the start.bat command line to be this: java -jar -ea -Declipse.ignoreApp=true -Dosgi.clean=true -Ddebug=true plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -console -noExit&lt;br /&gt;
Essentially put the full launcher path and remove the u in front of java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=140</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=140"/>
		<updated>2018-03-09T15:38:54Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya/onem2m-demo&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
 &#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;:&lt;br /&gt;
To run the platform on windows i needed to modify the start.bat command line to be this: java -jar -ea -Declipse.ignoreApp=true -Dosgi.clean=true -Ddebug=true plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -console -noExit&lt;br /&gt;
&lt;br /&gt;
Essentially put the full launcher path and remove the u in front of java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=139</id>
		<title>Interesting links</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=139"/>
		<updated>2018-03-09T15:10:31Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*Developer guide on Remote light control&lt;br /&gt;
http://www.onem2m.org/application-developer-guide/use-case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hackster oneM2M project page&lt;br /&gt;
https://www.hackster.io/onem2m/onem2m-demo-57022e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hardware nodeMCU kit&lt;br /&gt;
The device kit that you will use during the event (and that you will get to keep):&lt;br /&gt;
https://www.amazon.com/OSOYOO-Programming-Learning-Developmen-Tutorial/dp/B073Z84243/ref=redir_mobile_desktop?_encoding=UTF8&amp;amp;keywords=nodemcu%20kit&amp;amp;pi=AC_SX236_SY340_FMwebp_QL65&amp;amp;qid=1516921167&amp;amp;ref_=mp_s_a_1_2&amp;amp;sr=8-2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Open Source OM2M implementing oneM2M CSE&lt;br /&gt;
**http://www.eclipse.org/om2m/&lt;br /&gt;
** https://wiki.eclipse.org/OM2M/one&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*onem2mlib by Andreas Kraft&lt;br /&gt;
This Python3 module implements a library to access and manage resources on a oneM2M CSE.&lt;br /&gt;
&lt;br /&gt;
https://github.com/ankraft/onem2mlib&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=138</id>
		<title>Interesting links</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=138"/>
		<updated>2018-03-09T15:10:15Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*Developer guide on Remote light control&lt;br /&gt;
http://www.onem2m.org/application-developer-guide/use-case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hackster oneM2M project page&lt;br /&gt;
https://www.hackster.io/onem2m/onem2m-demo-57022e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hardware nodeMCU kit&lt;br /&gt;
The device kit that you will use during the event (and that you will get to keep):&lt;br /&gt;
https://www.amazon.com/OSOYOO-Programming-Learning-Developmen-Tutorial/dp/B073Z84243/ref=redir_mobile_desktop?_encoding=UTF8&amp;amp;keywords=nodemcu%20kit&amp;amp;pi=AC_SX236_SY340_FMwebp_QL65&amp;amp;qid=1516921167&amp;amp;ref_=mp_s_a_1_2&amp;amp;sr=8-2&lt;br /&gt;
&lt;br /&gt;
*Open Source OM2M implementing oneM2M CSE&lt;br /&gt;
**http://www.eclipse.org/om2m/&lt;br /&gt;
** https://wiki.eclipse.org/OM2M/one&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*onem2mlib by Andreas Kraft&lt;br /&gt;
This Python3 module implements a library to access and manage resources on a oneM2M CSE.&lt;br /&gt;
&lt;br /&gt;
https://github.com/ankraft/onem2mlib&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=137</id>
		<title>Interesting links</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=137"/>
		<updated>2018-03-09T15:09:10Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*Developer guide on Remote light control&lt;br /&gt;
http://www.onem2m.org/application-developer-guide/use-case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hackster oneM2M project page&lt;br /&gt;
https://www.hackster.io/onem2m/onem2m-demo-57022e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hardware nodeMCU kit&lt;br /&gt;
The device kit that you will use during the event (and that you will get to keep):&lt;br /&gt;
https://www.amazon.com/OSOYOO-Programming-Learning-Developmen-Tutorial/dp/B073Z84243/ref=redir_mobile_desktop?_encoding=UTF8&amp;amp;keywords=nodemcu%20kit&amp;amp;pi=AC_SX236_SY340_FMwebp_QL65&amp;amp;qid=1516921167&amp;amp;ref_=mp_s_a_1_2&amp;amp;sr=8-2&lt;br /&gt;
&lt;br /&gt;
*Open Source OM2M implementing oneM2M CSE&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
https://wiki.eclipse.org/OM2M/one&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*onem2mlib by Andreas Kraft&lt;br /&gt;
This Python3 module implements a library to access and manage resources on a oneM2M CSE.&lt;br /&gt;
https://github.com/ankraft/onem2mlib&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Rules_of_Conduct&amp;diff=136</id>
		<title>Rules of Conduct</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Rules_of_Conduct&amp;diff=136"/>
		<updated>2018-03-09T15:01:35Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hackathon&lt;br /&gt;
Code of Conduct: We expect all participants to abide by the below Code of Conduct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[MEDIA:OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf ‎| OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf  ‎]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Rules_of_Conduct&amp;diff=135</id>
		<title>Rules of Conduct</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Rules_of_Conduct&amp;diff=135"/>
		<updated>2018-03-09T14:59:08Z</updated>

		<summary type="html">&lt;p&gt;Velez: Created page with &amp;quot;Hackathon Code of Conduct: We expect all participants to abide by the below Code of Conduct.  [OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf | OneM2M_Hackathon_-_Code_of_Conduct]&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hackathon&lt;br /&gt;
Code of Conduct: We expect all participants to abide by the below Code of Conduct.&lt;br /&gt;
&lt;br /&gt;
[OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf | OneM2M_Hackathon_-_Code_of_Conduct]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=134</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=134"/>
		<updated>2018-03-09T14:57:29Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** Event Information|Event Information&lt;br /&gt;
** Device kit example|Device kit example&lt;br /&gt;
#** Support team|Support team&lt;br /&gt;
** Rules of Conduct | Rules of Conduct&lt;br /&gt;
** Interesting links|Interesting links&lt;br /&gt;
&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=133</id>
		<title>Interesting links</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=133"/>
		<updated>2018-03-09T14:55:30Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*Developer guide on Remote light control&lt;br /&gt;
http://www.onem2m.org/application-developer-guide/use-case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hackster oneM2M project page&lt;br /&gt;
https://www.hackster.io/onem2m/onem2m-demo-57022e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hardware nodeMCU kit&lt;br /&gt;
The device kit that you will use during the event (and that you will get to keep):&lt;br /&gt;
https://www.amazon.com/OSOYOO-Programming-Learning-Developmen-Tutorial/dp/B073Z84243/ref=redir_mobile_desktop?_encoding=UTF8&amp;amp;keywords=nodemcu%20kit&amp;amp;pi=AC_SX236_SY340_FMwebp_QL65&amp;amp;qid=1516921167&amp;amp;ref_=mp_s_a_1_2&amp;amp;sr=8-2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf&amp;diff=132</id>
		<title>File:OneM2M Hackathon - Code of Conduct 6Mar18.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:OneM2M_Hackathon_-_Code_of_Conduct_6Mar18.pdf&amp;diff=132"/>
		<updated>2018-03-09T14:54:39Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=131</id>
		<title>Interesting links</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=131"/>
		<updated>2018-03-09T14:53:52Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*Developer guide on Remote light control&lt;br /&gt;
http://www.onem2m.org/application-developer-guide/use-case&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hackster oneM2M project page&lt;br /&gt;
https://www.hackster.io/onem2m/onem2m-demo-57022e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Hardware nodeMCU kit&lt;br /&gt;
The device kit that you will use during the event (and that you will get to keep):&lt;br /&gt;
https://www.amazon.com/OSOYOO-Programming-Learning-Developmen-Tutorial/dp/B073Z84243/ref=redir_mobile_desktop?_encoding=UTF8&amp;amp;keywords=nodemcu%20kit&amp;amp;pi=AC_SX236_SY340_FMwebp_QL65&amp;amp;qid=1516921167&amp;amp;ref_=mp_s_a_1_2&amp;amp;sr=8-2&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=130</id>
		<title>Interesting links</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Interesting_links&amp;diff=130"/>
		<updated>2018-03-09T14:46:11Z</updated>

		<summary type="html">&lt;p&gt;Velez: Created page with &amp;quot; Developer guide on Remote light control  http://www.onem2m.org/application-developer-guide/use-case&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Developer guide on Remote light control&lt;br /&gt;
&lt;br /&gt;
http://www.onem2m.org/application-developer-guide/use-case&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=129</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=129"/>
		<updated>2018-03-09T14:44:09Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** Event Information|Event Information&lt;br /&gt;
** Device kit example|Device kit example&lt;br /&gt;
#** Support team|Support team&lt;br /&gt;
** Interesting links|Interesting links&lt;br /&gt;
&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=128</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=128"/>
		<updated>2018-03-09T14:43:39Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** Main Page|Home Page Event&lt;br /&gt;
** Event Information|Event Information&lt;br /&gt;
** Device kit example|Device kit example&lt;br /&gt;
#** Support team|Support team&lt;br /&gt;
** Interesting links|Interesting links&lt;br /&gt;
&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=127</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=127"/>
		<updated>2018-03-04T20:57:32Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left; padding: 15px; height:100%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot; padding: 20px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:16pt&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Welcome to oneM2M Hackathon Dallas 2018&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;The hackathon will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform like oneM2M.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=126</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=126"/>
		<updated>2018-03-04T20:57:17Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left; padding: 15px; height:100%&amp;quot;&amp;gt;&lt;br /&gt;
[[File:oneM2M-logo.png|400px|frameless|oneM2M Webpage]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot; padding: 20px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:16pt&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Welcome to oneM2M Hackathon Dallas 2018&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;The hackathon will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform like oneM2M.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=125</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=125"/>
		<updated>2018-03-04T20:56:56Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:left; padding: 15px; height:100%&amp;quot;&amp;gt;&lt;br /&gt;
[[File:oneM2M-logo.png|400px|frameless|oneM2M Webpage]]&lt;br /&gt;
&lt;br /&gt;
[http://www.oneM2M.org/ Find more about oneM2M...]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot; padding: 20px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:16pt&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Welcome to oneM2M Hackathon Dallas 2018&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;The hackathon will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform like oneM2M.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=124</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=124"/>
		<updated>2018-03-02T13:04:34Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya/onem2m-demo&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=123</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=123"/>
		<updated>2018-03-02T12:44:55Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance ==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=122</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=122"/>
		<updated>2018-03-02T12:44:28Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites 1)==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project 2)==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance 3)==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=121</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=121"/>
		<updated>2018-03-02T12:40:42Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=120</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=120"/>
		<updated>2018-03-02T12:40:19Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== 1. Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=119</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=119"/>
		<updated>2018-03-02T12:39:32Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
= Demonstration high level architecture  =&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=118</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=118"/>
		<updated>2018-03-02T12:32:03Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=117</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=117"/>
		<updated>2018-03-02T12:31:28Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:Map.PNG&amp;diff=116</id>
		<title>File:Map.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:Map.PNG&amp;diff=116"/>
		<updated>2018-03-02T12:28:54Z</updated>

		<summary type="html">&lt;p&gt;Velez: Velez uploaded a new version of File:Map.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=115</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=115"/>
		<updated>2018-03-02T12:27:00Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Venue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=114</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=114"/>
		<updated>2018-03-02T12:26:32Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Venue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.png]]&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=113</id>
		<title>Event Information</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Event_Information&amp;diff=113"/>
		<updated>2018-03-02T12:26:21Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Venue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Venue ==&lt;br /&gt;
&lt;br /&gt;
9-10 March 2018&lt;br /&gt;
The University of Texas at Dallas&lt;br /&gt;
T1 Auditorium&lt;br /&gt;
800 W Campbell Rd&lt;br /&gt;
Richardson, TX 75080&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Map.png&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform. The oneM2M standard (www.onem2m.org) will be introduced as a promising solution for IoT cross-domain interoperability. The participants will be asked to follow practical sessions to learn how to quickly integrate heterogeneous IoT devices and develop IoT applications based on the open source project Eclipse OM2M (www.eclipse.org/om2m).&lt;br /&gt;
&lt;br /&gt;
oneM2M standard&lt;br /&gt;
Today, sensors, actuators, tags, vehicles, and intelligent things all have the ability to communicate. The number of IoT devices is continuously increasing, and it has been predicted to see billions of connected objects interconnected in the near future. IoT applications provide advantages in various domains from smart cities, factories of the future, connected cars, home automation, e-health to precision agriculture. This fast-growing ecosystem is leading IoT towards a promising future. However, IoT market expansion opportunities are not straightforward. A set of challenges should be overcome to enable IoT mass-scale deployment across various industries including interoperability, complexity, and scalability issues. &lt;br /&gt;
&lt;br /&gt;
Currently, the IoT market is suffering from vertical fragmentation affecting the majority of business sectors. In fact, various vendor-specific IoT solutions have been designed independently for specific applications, which has led to serious interoperability issues. To address this challenge, the eight most important telecom SDOs in the world established a global partnership project called oneM2M. oneM2M provides a common architecture for IoT cross-domain interoperability in terms of communication and semantic data. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Eclipse OM2M open source project ==&lt;br /&gt;
Eclipse OM2M offers a full open source implementation of the oneM2M standard. It supports all types of interfaces and nodes defined in the standard including “Infrastructure Node”, “Middle Node”, “Application Service Node” and “Application Dedicated Node”.  Each node may host a set of applications and a Common Service Entity including capabilities for communication protocol bindings, device interworking, management, security, etc. Eclipse OM2M relies on a modular architecture, designed on top of a protocol-independent kernel, running on top of an OSGi layer and is highly extensible via plugins which make a promising candidate for integration and experimentation.&lt;br /&gt;
http://www.eclipse.org/om2m/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Target audience ==&lt;br /&gt;
The audience targeted by this tutorial includes software architects and developers as well as academic and industrial researchers, and PhD students who can benefit from the different parts of the tutorial including the theoretical as well as the technical aspects related to IoT standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Outline of the tutorial ==&lt;br /&gt;
&lt;br /&gt;
The tutorial will be structured in two main parts. In the first part, we will develop the foundations and the technical background that will be useful for the attendees for getting started with the oneM2M common architecture’s main concepts, features and interfaces. In the second part, we will conduct the technical learning part. This will consist of interactive training that will address the different issues necessary for developers. This includes understanding and manipulating the oneM2M API for developing applications and integrating devices on top of the Eclipse OM2M platform.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The structure of the tutorial is the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Technical Presentations&lt;br /&gt;
** IoT, Vision and Challenges&lt;br /&gt;
** oneM2M Common Architecture for IoT&lt;br /&gt;
** Eclipse OM2M, Open Source oneM2M-based Platform&lt;br /&gt;
&lt;br /&gt;
* Demonstrations and API manipulations&lt;br /&gt;
** Hands-on oneM2M, development of your IoT Applications&lt;br /&gt;
** Interworking with legacy and vendor-specific technologies&lt;br /&gt;
** Towards Semantic IoT, oneM2M Base Ontology&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hackathon Agenda ==&lt;br /&gt;
&lt;br /&gt;
* Day #1 (9 March 2018) - presentations; tutorials; hackathon rules&lt;br /&gt;
**Friday morning&lt;br /&gt;
***Introductions&lt;br /&gt;
***IoT, Vision and Challenges&lt;br /&gt;
***Tutorial on oneM2M&lt;br /&gt;
****oneM2M Common Architecture for IoT&lt;br /&gt;
****Open source (Eclipse OM2M) introduction&lt;br /&gt;
****Example of projects using HW provided&lt;br /&gt;
**Friday afternoon&lt;br /&gt;
***Form teams&lt;br /&gt;
***Per team, select one of the challenges to be solved. The solution must use the oneM2M architecture.&lt;br /&gt;
***Additional requirements may be specified.&lt;br /&gt;
****Each project to use the HW provided. &lt;br /&gt;
****Requirement to use the oneM2M service platform.&lt;br /&gt;
****Application to be created for PC, web or mobile (IOS, Android).&lt;br /&gt;
***The teams develop their projects on Friday evening after dinner until 21:00.&lt;br /&gt;
&lt;br /&gt;
* Day #2 (10 March 2018) - hackathon team work; awards and certificates&lt;br /&gt;
**Saturday morning&lt;br /&gt;
***The teams develop and finalize their projects.&lt;br /&gt;
**Saturday afternoon&lt;br /&gt;
***Presentation of each project&lt;br /&gt;
***Projects are reviewed by the jury during coffee break&lt;br /&gt;
***Awards&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:Map.PNG&amp;diff=112</id>
		<title>File:Map.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:Map.PNG&amp;diff=112"/>
		<updated>2018-03-02T12:25:34Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Main_Page&amp;diff=111</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Main_Page&amp;diff=111"/>
		<updated>2018-03-02T12:03:53Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float:left; padding: 15px; height:100%&amp;quot;&amp;gt;&lt;br /&gt;
[[File:oneM2M-logo.png|400px|frameless|oneM2M Webpage]]&lt;br /&gt;
&lt;br /&gt;
[http://www.oneM2M.org/ Find more about oneM2M...]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot; padding: 20px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:16pt&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Welcome to oneM2M Hackathon Dallas 2018&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;The hackathon will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform like oneM2M.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_Kit_example&amp;diff=110</id>
		<title>Device Kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_Kit_example&amp;diff=110"/>
		<updated>2018-03-02T12:03:17Z</updated>

		<summary type="html">&lt;p&gt;Velez: Created page with &amp;quot;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;  == Demonstration high level architecture  ==  File:Diagram.png   ==  Prerequisites == The following tools are required to run this de...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=109</id>
		<title>Device kit example</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Device_kit_example&amp;diff=109"/>
		<updated>2018-03-02T12:03:03Z</updated>

		<summary type="html">&lt;p&gt;Velez: Created page with &amp;quot;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;  == Demonstration high level architecture  ==  File:Diagram.png   ==  Prerequisites == The following tools are required to run this de...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Main_Page&amp;diff=108</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Main_Page&amp;diff=108"/>
		<updated>2018-03-02T12:02:06Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float:left; padding: 15px; height:100%&amp;quot;&amp;gt;&lt;br /&gt;
[[File:oneM2M-logo.png|400px|frameless|oneM2M Webpage]]&lt;br /&gt;
&lt;br /&gt;
[http://www.oneM2M.org/ Find more about oneM2M...]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot; padding: 20px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:16pt&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Welcome to oneM2M Hackathon Dallas 2018&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;The hackathon will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform like oneM2M.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Event Information|Event Information]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here you can find information relating to the venue and the event itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Network Information|Network Information]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Technical information regarding the network.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Getting started|Getting started]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Device Kit example|Device Kit example]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Some simple API examples.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Hackathon team|Hackathon team]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Please don not hesitate to contact the team.&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Main_Page&amp;diff=107</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=Main_Page&amp;diff=107"/>
		<updated>2018-03-02T12:01:41Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float:left; padding: 15px; height:100%&amp;quot;&amp;gt;&lt;br /&gt;
[[File:oneM2M-logo.png|400px|frameless|oneM2M Webpage]]&lt;br /&gt;
&lt;br /&gt;
[http://www.oneM2M.org/ Find more about oneM2M...]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot; padding: 20px; text-align:center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:16pt&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Welcome to oneM2M Hackathon Dallas 2018&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;The hackathon will present the IoT vision, challenges, and efforts achieved by the standardization bodies to design a globally agreed IoT service platform like oneM2M.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Event Information|Event Information]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here you can find information relating to the venue and the event itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Network Information|Network Information]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Technical information regarding the network.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Getting started|Getting started]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Device Kit example|Device Kit exampl]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Some simple API examples.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Hackathon team|Hackathon team]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Please don not hesitate to contact the team.&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=106</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=MediaWiki:Sidebar&amp;diff=106"/>
		<updated>2018-03-02T12:00:51Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** Main Page|Home Page Event&lt;br /&gt;
** Event Information|Event Information&lt;br /&gt;
** Network Information|Network Information&lt;br /&gt;
** Getting started|Getting started&lt;br /&gt;
** Device kit example|Device kit example&lt;br /&gt;
** Support team|Support team&lt;br /&gt;
** Interesting links|Interesting links&lt;br /&gt;
&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=105</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=105"/>
		<updated>2018-03-02T11:56:52Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=104</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=104"/>
		<updated>2018-03-02T11:56:21Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  1.Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=103</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=103"/>
		<updated>2018-03-02T11:55:38Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Add Nodemcu board to Arduino IDE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=102</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=102"/>
		<updated>2018-03-02T11:54:56Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=101</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=101"/>
		<updated>2018-03-02T11:51:05Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Upload the oneM2M sketch to Nodemcu board. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.png]]&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=100</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=100"/>
		<updated>2018-03-02T11:50:41Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=99</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=99"/>
		<updated>2018-03-02T11:50:02Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Connect your IoT Device */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=98</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=98"/>
		<updated>2018-03-02T11:49:36Z</updated>

		<summary type="html">&lt;p&gt;Velez: /* Connect your IoT Device */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
&lt;br /&gt;
[[File:Real-wiring.png]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:Real-wiring.jpg&amp;diff=97</id>
		<title>File:Real-wiring.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=File:Real-wiring.jpg&amp;diff=97"/>
		<updated>2018-03-02T11:49:09Z</updated>

		<summary type="html">&lt;p&gt;Velez: Velez uploaded a new version of File:Real-wiring.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=96</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=96"/>
		<updated>2018-03-02T11:46:46Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
__TOC__&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
	<entry>
		<id>https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=95</id>
		<title>API specification</title>
		<link rel="alternate" type="text/html" href="https://wiki.plugtests.net/oneM2M-Hackathon-Dallas-2018/index.php?title=API_specification&amp;diff=95"/>
		<updated>2018-03-02T11:45:58Z</updated>

		<summary type="html">&lt;p&gt;Velez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Demonstration high level architecture  ==&lt;br /&gt;
&lt;br /&gt;
[[File:Diagram.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Prerequisites ==&lt;br /&gt;
The following tools are required to run this demonstration.&lt;br /&gt;
*JAVA 1.8&lt;br /&gt;
*Arduino IDE 1.8.5&lt;br /&gt;
*NodeJS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Download the project ==&lt;br /&gt;
&lt;br /&gt;
Download the oneM2M demo project from Github from the following link:&lt;br /&gt;
&lt;br /&gt;
https://github.com/mbenalaya&lt;br /&gt;
&lt;br /&gt;
The project contains the following folders:&lt;br /&gt;
*onem2m-platform&lt;br /&gt;
*onem2m-device&lt;br /&gt;
*onem2m-app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Start oneM2M platform instance==&lt;br /&gt;
&amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
The oneM2M platform is available on folder “oneM2M Platform”&lt;br /&gt;
&lt;br /&gt;
===Configure the platform===&lt;br /&gt;
You can keep the default configuration for a local demonstration. The platform will listen on ports 8080 and 8443. The database is reset after each restart.&lt;br /&gt;
&lt;br /&gt;
If needed, you can change the configuration of the platform by editing the file “configuration/config.ini”.&lt;br /&gt;
&lt;br /&gt;
===Start the platform===&lt;br /&gt;
Start the platform by executing the &amp;quot;start.bat&amp;quot; script on Windows or &amp;quot;start.sh&amp;quot; on Linux and Mac OS.&lt;br /&gt;
&lt;br /&gt;
[[File:Console.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login to oneM2M web interface===&lt;br /&gt;
Open the following URL in your browser to access the oneM2M platform web interface: &lt;br /&gt;
https://127.0.0.1:8080/webpage&lt;br /&gt;
[[File:Login.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter &amp;quot;Cae-admin&amp;quot; as originator then click on “connect”.&lt;br /&gt;
[[File:Resource-tree.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT Device==&lt;br /&gt;
The arduino source code and required libraries are available on the folder onem2m-device.&lt;br /&gt;
&lt;br /&gt;
===Schematics===&lt;br /&gt;
*Breadboard&lt;br /&gt;
*Nodemcu board&lt;br /&gt;
*LED&lt;br /&gt;
*Luminosity Sensor&lt;br /&gt;
*1Kohm resistance&lt;br /&gt;
&lt;br /&gt;
Connect the LED and luminosity sensor to the Nodemcu board using:&lt;br /&gt;
&lt;br /&gt;
[[File:Board-plan.png]]&lt;br /&gt;
&lt;br /&gt;
Real wiring:&lt;br /&gt;
[[File:Real-wiring.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Download and install arduino IDE===&lt;br /&gt;
Download and install the Arduino IDE v1.8.5 from the following link:&lt;br /&gt;
https://www.arduino.cc/en/Main/Software&lt;br /&gt;
&lt;br /&gt;
NB: We don’t recommend to use the Arduino Web Editor for this demonstration because the nodemcu board is not supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Add Nodemcu board to Arduino IDE===&lt;br /&gt;
&lt;br /&gt;
Firstly open the Arduino IDE&lt;br /&gt;
Go to files and click on the preference in the Arduino IDE&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide.png]]&lt;br /&gt;
&lt;br /&gt;
copy the below code in the Additional boards Manager&lt;br /&gt;
http://arduino.esp8266.com/stable/package_esp8266com_index.json&lt;br /&gt;
click OK to close the preference Tab.&lt;br /&gt;
After completing the above steps , go to Tools and board, and then select board Manager&lt;br /&gt;
[[File:Arduino-ide2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate to esp8266 by esp8266 community and install the software for Arduino.&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once all the above process been completed you are ready to program the nodemcu board with Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
===Add Arduino “Timer.h” library===&lt;br /&gt;
&lt;br /&gt;
The “Timer.h” library is available on the zip folder “Timer-master.zip”.&lt;br /&gt;
&lt;br /&gt;
Go to Sketch, and then select “include library”.&lt;br /&gt;
Chose the “Add .ZIP library” option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Arduino-ide4.png]]&lt;br /&gt;
&lt;br /&gt;
Select the zip folder “Timer-master.zip” then confirm.&lt;br /&gt;
NB: You don’t have to extract the zip content.&lt;br /&gt;
&lt;br /&gt;
===Configure the oneM2M sketch===&lt;br /&gt;
Open the sketch “onem2m-adn.ino” in your Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
Set your WIFI parameters&lt;br /&gt;
*const char* ssid = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
*const char* password = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform&lt;br /&gt;
*const char* host = &amp;quot;XXXXXXXX&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Compile the oneM2M sketch===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on verify button [[File:Button1.png]] to compile the sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compilation output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation.png]]&lt;br /&gt;
&lt;br /&gt;
===Upload the oneM2M sketch to Nodemcu board.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on upload button [[File:Button2.png]] to upload the sketch to the nodemcu board .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upload output:&lt;br /&gt;
&lt;br /&gt;
[[File:Compiliation2.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Debug the code execution using serial monitor===&lt;br /&gt;
&lt;br /&gt;
Cick on [[File:Button3.png]] button to open the Arduino Serial Monitor to display the Nodemcu console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then after opening the Serial Monitor select 115200 from the drop-down list.&lt;br /&gt;
[[File:Monitor.png]]&lt;br /&gt;
&lt;br /&gt;
===Check IoT device resources on oneM2M web interface===&lt;br /&gt;
You should see “mydevice1” Application Entity resource with “luminosity” an “led” containers created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree2.png]]&lt;br /&gt;
&lt;br /&gt;
==Connect your IoT application==&lt;br /&gt;
The luminosity monitoring application source code is available on the folder onem2m-app&lt;br /&gt;
&lt;br /&gt;
===Configure application===&lt;br /&gt;
Open the file onem2m-monitor.js with a text editor.&lt;br /&gt;
&lt;br /&gt;
Set the IP address of the oneM2M platform. You can keep localhost if you are running the oneM2M platform and the application in the same machine. &lt;br /&gt;
&lt;br /&gt;
===Start the application===&lt;br /&gt;
&lt;br /&gt;
Start the nodejs oneM2M application using the following command:&lt;br /&gt;
&amp;gt; node onem2m-monitor.js &lt;br /&gt;
&lt;br /&gt;
[[File:Console2.png]] &lt;br /&gt;
&lt;br /&gt;
===Check IoT application resource on oneM2M web interface===&lt;br /&gt;
&lt;br /&gt;
You should see “mymonitor1” Application Entity resource created on the oneM2M resource tree.&lt;br /&gt;
&lt;br /&gt;
[[File:Resource-tree3.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration==&lt;br /&gt;
If you hide the luminosity sensor with your hand for few seconds, you should see the led switched ON by the monitoring application and vice versa.&lt;br /&gt;
[[File:Final-result.png]]&lt;/div&gt;</summary>
		<author><name>Velez</name></author>
	</entry>
</feed>