AnimatedLEDStrip Client

A helper library for communicating with an AnimatedLEDStrip server

Лицензия

Лицензия

Категории

Категории

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

Группа

io.github.animatedledstrip
Идентификатор

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

animatedledstrip-client-metadata
Последняя версия

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

1.0.1
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

AnimatedLEDStrip Client
A helper library for communicating with an AnimatedLEDStrip server
Ссылка на сайт

Ссылка на сайт

https://github.com/AnimatedLEDStrip/client-kotlin-mpp
Система контроля версий

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

https://github.com/AnimatedLEDStrip/client-kotlin-mpp

Скачать animatedledstrip-client-metadata

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
io.github.animatedledstrip : animatedledstrip-core jar 1.0.1
io.ktor : ktor-client-core jar 1.5.2
io.ktor : ktor-client-serialization jar 1.5.2
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.32

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

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

Build Status codecov Maven Central

AnimatedLEDStrip Client Library for Kotlin/MPP

This library allows a Kotlin/JVM or Kotlin/JS client to communicate with an AnimatedLEDStrip server.

Creating an ALSHttpClient

To create a HTTP client, run ALSHttpClient(clientEngine, ip).

clientEngine is a Ktor HttpClientEngineFactory

val client = ALSHttpClient(CIO, ip = "10.0.0.254")

An optional configuration for the Ktor engine can be passed as a third argument. Any configuration should include a JSON feature that uses the AnimatedLEDStrip serializer:

import animatedledstrip.communication.serializer as alsSerializer

install(JsonFeature) {
    serializer = KotlinxSerializer(alsSerializer)
}

Communicating with the Server

This library follows the conventions laid out for AnimatedLEDStrip client libraries.

io.github.animatedledstrip

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

Версия
1.0.1