1.0.32 โข Published 1 year ago
@ditchoom/mqtt-4-models v1.0.32
About The Project
Runtime Dependencies
Supported Platforms
Platform | ๐ Builds๐ + ๐ฌTests๐ฌ | Deployed Artifact | Non 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
git clone git@github.com:DitchOoM/mqtt-4-models.git
- Open cloned directory with Intellij IDEA.
- Be sure to open with gradle
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the Apache 2.0 License. See LICENSE
for more information.