IOR-Java

This is the Java Client Library for our IOR Project

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем Search Прикладные библиотеки
Группа

Группа

com.github.mayank31313
Идентификатор

Идентификатор

ior_research.iotclient
Последняя версия

Последняя версия

0.3.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

IOR-Java
This is the Java Client Library for our IOR Project
Система контроля версий

Система контроля версий

https://github.com/mayank31313/ior-java

Скачать ior_research.iotclient

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.mayank31313/ior_research.iotclient/ -->
<dependency>
    <groupId>com.github.mayank31313</groupId>
    <artifactId>ior_research.iotclient</artifactId>
    <version>0.3.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.mayank31313/ior_research.iotclient/
implementation 'com.github.mayank31313:ior_research.iotclient:0.3.3'
// https://jarcasting.com/artifacts/com.github.mayank31313/ior_research.iotclient/
implementation ("com.github.mayank31313:ior_research.iotclient:0.3.3")
'com.github.mayank31313:ior_research.iotclient:jar:0.3.3'
<dependency org="com.github.mayank31313" name="ior_research.iotclient" rev="0.3.3">
  <artifact name="ior_research.iotclient" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.mayank31313', module='ior_research.iotclient', version='0.3.3')
)
libraryDependencies += "com.github.mayank31313" % "ior_research.iotclient" % "0.3.3"
[com.github.mayank31313/ior_research.iotclient "0.3.3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.google.code.gson : gson jar 2.8.5
org.apache.httpcomponents : httpclient jar 4.5.6

Модули Проекта

Данный проект не имеет модулей.

IOR Client - Java

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:

Installation

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>

Usage

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

Create Instance of IOT Client

IOTClient iot = IOTClient(from = code,to=to,token=token) #Creating object for IOT Client

Setting up Receive Function to do some Operation when a response is received.

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;
}

Last but not the least start the IOTClient

iot.start()

Версии библиотеки

Версия
0.3.3