Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: ClearBlade/ClearBlade-Python-SDK

v2.4.7

04 Aug 16:37
2d8d399
Compare
Choose a tag to compare

As per suggestions from wildbiotiger:

  • Added public attribute to expose underlying Paho MQTT client in case needed
  • Added docstrings to public methods

As per this PR submitted by @swilcox:
#31

  • Added option to use standard Python logging

v2.4.6

18 Jul 18:39
e713f78
Compare
Choose a tag to compare

Fix:
IF a timeout happened when calling Messaging.connect() with use_tls (e.g. due to no network connectivity), THEN calling Messaging.connect() again resulted in an error preventing a successful reconnect. This has been fixed

Enhancement:
Inside ClearBladeCore.py, there were several direct calls to exit() on invalid authentication. These have now been replaced with cbErrors.handle() where cbErrors is an object of a new ErrorHandler class.

The generic handle() method is exit(). To override this method a user can create a more specific class and an overriding method as follows:

from clearblade.ClearBladeCore import System, cbErrors

class YourErrorHandler(cbErrors.ErrorHandler):
    def handle(self, code):
        # your custom error handling goes here. Call the super 'handle' (below) if needed
        # super().handle(code)
        print("custom error handling")

cbErrors.ERROR_HANDLER = YourErrorHandler()
...

v2.4.4

13 Sep 11:56
Compare
Choose a tag to compare

This release provides an additional way to authenticate a device: using mTLS authentication.
This requires passing an x509keyPair when creating the Device object.

Definition: System.Device(name, x509keyPair={"certfile": "/path/to/your/cert.pem", "keyfile": "/path/to/your.key"})
Returns: Device object.

mTLS authentication is achieved by a POST request being sent to API {platformURL}:444/api/v/4/devices/mtls/auth with the provided x509keyPair being loaded into the SSL context's cert chain. This is handled by the SDK.

v2.4.3

27 Feb 21:46
81ca268
Compare
Choose a tag to compare

What's Changed

v2.4.2

19 Sep 18:14
Compare
Choose a tag to compare

No changes to source code. Only removed a file that was inadvertently added to PyPi distribution.

v2.4.1

27 Jun 15:54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.0...v2.4.1

Version 2.3.1

02 Dec 19:49
Compare
Choose a tag to compare
v2.3.1

Version 2.3.1 Release

Version 2.3.0

02 Dec 19:02
Compare
Choose a tag to compare
v2.3.0

Version 2.3.0 Release

Version 2.2.5

05 Oct 19:28
Compare
Choose a tag to compare
v2.2.5

auto generate client id if not given

Version 2.2.4

02 Oct 23:38
Compare
Choose a tag to compare

Allow setting clientid in messaging object.