Sigfox Rest Client

Sigfox Rest Client makes working with sigfox backend easier

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

fr.rtone
ArtifactId

ArtifactId

sigfox-client
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Sigfox Rest Client
Sigfox Rest Client makes working with sigfox backend easier
Project URL

Project URL

https://github.com/Rtone/sigfox-rest-client
Source Code Management

Source Code Management

https://github.com/Rtone/sigfox-rest-client

Download sigfox-client

How to add to project

<!-- https://jarcasting.com/artifacts/fr.rtone/sigfox-client/ -->
<dependency>
    <groupId>fr.rtone</groupId>
    <artifactId>sigfox-client</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/fr.rtone/sigfox-client/
implementation 'fr.rtone:sigfox-client:1.0.2'
// https://jarcasting.com/artifacts/fr.rtone/sigfox-client/
implementation ("fr.rtone:sigfox-client:1.0.2")
'fr.rtone:sigfox-client:jar:1.0.2'
<dependency org="fr.rtone" name="sigfox-client" rev="1.0.2">
  <artifact name="sigfox-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='fr.rtone', module='sigfox-client', version='1.0.2')
)
libraryDependencies += "fr.rtone" % "sigfox-client" % "1.0.2"
[fr.rtone/sigfox-client "1.0.2"]

Dependencies

compile (5)

Group / Artifact Type Version
com.squareup.retrofit2 : retrofit jar 2.9.0
com.squareup.retrofit2 : adapter-rxjava jar 2.9.0
com.squareup.retrofit2 : converter-jackson jar 2.9.0
com.squareup.okhttp3 : logging-interceptor jar 3.14.9
com.squareup.okio : okio jar 2.8.0

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.12

test (2)

Group / Artifact Type Version
junit : junit jar 4.13
org.assertj : assertj-core jar 3.17.1

Project Modules

There are no modules declared in this project.

Sigfox Rest client

Sigfox Rest client enables java developers to easily work with the Sigfox backend, this sdk makes it easy to deal with Sigfox backend APIs, you can get started in few minutes using maven .


Getting Started

Minimum requirements

to use the sdk, you will need java 1.8+ and Lombok plugin for your IDE and maven

Install the SDK

  • The sdk maven module is available on Maven Central:
    <dependency>
      <groupId>fr.rtone</groupId>
      <artifactId>sigfox-client</artifactId>
      <version>1.0.2</version>
    </dependency>

How to use the SDK

It's pretty simple to use the SDK, usage typically looks like this :

   // Configure sigfox client
   SigfoxClient sigfoxClient = SigfoxClientFactory.create()
           .setLoggingLevel(HttpLoggingInterceptor.Level.BODY)
           .setCredentials("login-test", "password-test")
           .build();
   
   // get Sigfox group list
   Integer limit = 10;
   Integer offset = 0;
   String parentId = null;
   
   sigfoxClient.getGroupList(limit, offset, parentId)
           .subscribe(groupSigfoxData -> System.out.println(groupSigfoxData.getData()));
   
   // Create a sigfox group
   Group group = SigfoxObjectBuilder.of(Group::new)
           .with(Group::setName, "test-group")
           .with(Group::setParent, "parentId-test")
           .with(Group::setBssId, "bssid-test")
           .with(Group::setDescription, "This is a test group")
           .build();
   
   
   sigfoxClient.createGroup(group)
           .subscribe(createdGroup -> System.out.println("Created group with id " + createdGroup.getId()));
 

Contribute

If you would like to contribute code, you can do so through GitHub by forking the repository and sending a pull request

Here some guidelines to we'd like you to follow :

Pull Requests

Before you submit your pull request consider the following guidelines:

  • Make your changes in a new git branch
  • Follow our coding style
  • If the change closes an issue, note that at the end of the commit description ex. "Fixes #18"

Code style

When submitting code, please ensure you follow the Intellij IDEA's code style.

License

Copyright 2017 Rtone.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

fr.rtone

Rtone

Versions

Version
1.0.2
1.0.1