Reading temperature via Internet
We are going to create a client and server program to tansfer the temperture read on a computer to another computer via Internet. The code is very simple by using the KMK USB Temperature Sensor Card and the KMK Internet Communication OCX.
1. Server program that receive and display the temperature transmit from the client computer.
2. Client program which read temperature and transmit to server computer.
Hints:
- You can read more than one temperature and transmit to another computer or different computers by using multiple KMK Temperature Cards and KMK Internet Communication Ocx with different IP / port number.
- The temperature read can be used to control other hardware with KMK IO cards.
- In this example the Client computer read the temperature and transmit it to Server computer. This is very common if we have different temperature check points from different locations and we can read all the temperature on one computer. You may change the roles of the computers such as reading temperature on the Server computer and allows different Client computers to log on and read the temperature data.