ZiBaT => Peter Levinsky => Programming => exercise

UDP / IoT
programming

Updated : 2016-09-26

Exercise: IoT with UDP-programming

Mission:

To design and implement programs which support receiving sensor information over a UDP communication.

Precondition:

the previous exercise SOAP based web services With DataBase- Part 4

Different exercises from Zuhair - so be sure you can do these exercises otherwise do them now:

Exercise A: UDP echo server assigment 1 + 2

Exercise B: UDP Number sender assignment 1 + 2

 

The IoT part of UDP programming:

Exercise C: Receive IoT broadcast

To receive the IoT Broadcast (This is actually fake or an simulation) you need to be at the EGV5-DMU2 / EGV5-DMU3 network (choose in your WiFi conenction viewer).
For some reason at 2den floor use EGV5-DMU3 and at 3rd floor use EGV5-DMU2.

Make an UDP 'server' to receive UDP datagrams from a client which broadcast out datagrams with IoT sensor information and print out these informations.

To receive the 'server' should listen on port 7080

 

Exercise D: Proxy IoT to Database

Combine to read the IoT information from the sensor (even this is simulated) and save the information in the web-service from web-service - Part4 using the soap interface.

 

Extra 1: Read information in Json format.

Do the same as in exercise D, but listen on port 7081 which give you the information encoded in JSON format

Extra 2: Read information in XML format.

Do the same as in exercise D, but listen on port 7082 which give you the information encoded in xml format