IOT is taking over world, many electronics device connect together on a network and communicate to each other. I have build app that helps you to connect those microcontroller together. Below are the client details.
Before going further this project is strongly meant for controlling robots over internet, you can check out more on Project Website
Currently it has been tested on: Arduino(with Ethernet Shield, WiFi Shield(but not tested)), NodeMCU, Lego Mindstroms EV3 Brick and on a Raspberry PI 3 other tests are being done.
This is git repository for the Java client:
Run the following command, use the following dependency to embed IORClient in your project.
<dependency>
<groupId>com.github.mayank31313</groupId>
<artifactId>IORClient</artifactId>
<version>0.3.5</version>
</dependency>
import ior_research.iotclient.*;
String token = "paste your subscription key here"
Integer code = //Current Device Code
Integer to = //Destination Device Code
Long or Integer time_delay = 90 # Time delay for the heart beat (in seconds) default is 90 seconds
IOTClient iot = IOTClient(from = code,to=to,token=token) #Creating object for IOT Client
iot.setReadFunction(Client::onReceive);
public static Boolean onReceive(SocketMessage msg) {
System.out.println("Message Received");
System.out.println("Message Received: " + msg.message);
System.out.println("Message status: " + msg.status);
return true;
}
iot.start()