Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

zmunm/SpringBootMybatisMqttPS

Repository files navigation

SpringBoot-Mybatis-MqttPS

sample

0. before you maintenance this project

0.1. Dependency (Learning curve)

1. :api

1.1. Dependency (Learning curve)

1.2. Documentation

Open endpoints require no Authentication. 

endpoint/swagger-ui.html

1.2.1 Admin

Method Endpoint Explain
GET /admins 관리자 정보 가져오기
POST /admins 관리자 입력
DELETE /admins 관리자 삭제
GET /admins/data 관리자 환경정보 가져오기

2. :core

2.1 Dependency (Learning curve)

3. :mqtt:publisher

MQTT Publisher 

3.1 Dependency (Learning curve)

3.2 YML Config

option.yml

Name Explanation
LogLevel 0 = Debug , 1 = Default, 2 = Mute
Domain just plain domain
Port broker's MQTT port
SSL true or false
UserName UserName
Password Password
LoopInterval LoopInterval
LoopCount LoopCount

here is example

MQTT: LogLevel: 0 Domain: your.domain Port: 1883 SSL: false UserName: root Password: 1234 LoopInterval: 3000 LoopCount: 3

data.yml

define individual topic and list up your data(hex byte array)

/topic: - a1b2c3d4e5f6 - ab,cd,11,22,33,44

you can make some data with ,. It will be removed when publish

4. :mqtt:subscriber

MQTT Subscriber 

4.1 Dependency (Learning curve)

4.2 YML Config

option.yml

Name Explanation
LogLevel 0 = Debug , 1 = Default, 2 = Mute
Domain just plain domain
Port broker's MQTT port
SSL true or false
UserName UserName
Password Password

here is example

MQTT: LogLevel: 2 Domain: 192.168.0.92 Port: 1883 SSL: false UserName: root Password: 1234 MySQL: Domain: 192.168.0.92 Port: 3306 UserName: choistec Password: chois2016!

About

SpringBoot by kotlin, Mybatis with Mqtt Publisher, Subscriber

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published