1.0.32 โ€ข Published 1 year ago

@ditchoom/mqtt-4-models v1.0.32

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

Runtime Dependencies

Supported Platforms

Platform๐Ÿ› Builds๐Ÿ›  + ๐Ÿ”ฌTests๐Ÿ”ฌDeployed ArtifactNon Kotlin Sample
JVM 1.8๐Ÿš€maven central ๐Ÿ”ฎWIP
Node.js๐Ÿš€npm ๐Ÿ”ฎWIP
Browser (Chrome)๐Ÿš€npm ๐Ÿ”ฎWIP
Android๐Ÿš€maven central ๐Ÿ”ฎWIP
iOS๐Ÿš€WIP cocoapods ๐Ÿ”ฎWIP
WatchOS๐Ÿš€WIP cocoapods ๐Ÿ”ฎWIP
TvOS๐Ÿš€WIP cocoapods ๐Ÿ”ฎWIP
MacOS๐Ÿš€WIP cocoapods ๐Ÿ”ฎWIP
Linux X64๐Ÿš€WIP apt/yum ๐Ÿ”ฎWIP
Windows X64๐Ÿš€WIP chocolatey ๐Ÿ”ฎWIP

Installation

Gradle

NPM

Usage

Serializing and deserializing a packet from a buffer

val connectionRequest = ConnectionRequest(clientId = "test", userName = "yolo")
val buffer = PlatformBuffer.allocate(connectionRequest.packetSize())
connectionRequest.serialize(buffer)
buffer.resetForRead()

val connectionRequestFromBuffer = ControlPacketV4Factory.from(buffer)
// or can be done without having to specify version number directly
val connectionRequestFromBuffer = connectionRequest.controlPacketFactory.from(buffer)
assertEquals(connectionRequest, connectionRequestFromBuffer)

Building Locally

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the Apache 2.0 License. See LICENSE for more information.