Android Question Matter protocol support bor B4X

giggetto71

Active Member
Licensed User
Longtime User
Hi,
I am planning to explore this Matter protocol which seems to be interesting.
do we have any B4X library supporting that?
thanks
 

Peter Simpson

Expert
Licensed User
Longtime User
Hello @giggetto71
do we have any B4X library supporting that?
thanks
Try this library, you will need a real Matter QR payload key.

You will have to test this library and example, I do have plenty of devices in place, but I'm not playing about with them ;)

Let me know if this works for you or not. I read your post this morning and I quickly put this library together to see if it works for you (or not).

I REMOVED THE ORIGINAL B4A LIBRARY FILES FROM THIS THREAD, USE THE UPDATED FILES IN THE THREAD BELOW.
 
Last edited:
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Hello @giggetto71
Update:
I have been out all day with the family, but something was on my mind that I read this morning whilst trying to create this library. I've not long got back home, so I decided to update this library.

SS_MatterCommissioning

Author:
Peter Simpson
Version: 1.01
  • MatterCommissioning
    • Events:
      • CommissioningFailed (Error As String)
      • CommissioningSuccess (DeviceName As String)
    • Functions:
      • Initialize (EventName As String)
        Initializes the MatterCommissioning object.
        EventName is the event name prefix (e.g., "mc").
      • StartCommissioning (onboardingPayload As String)
        Starts the Matter commissioning process using the provided onboarding payload.
        onboardingPayload is the Matter QR code payload string (starts with MT).
Click Here to download the zip file, place all the dependencies in your additional libraries folder. You can now do the usual with the attached two zip files, the B4A example and B4A library.

You will need a real Matter QR payload key. The test key currently inside the B4A example should be okay for you to use (for testing purposes only), it launches the Commissioning UI.

This is NOT an official B4A library release (call it a beta), just a quick test that may or may not work.

Please note:
This is just a very basic test library that is extremely limited in functionality. I just wanted to know if I could put something together that can connect to devices. If this works, I'll do some reading to see what other features I might be able include once the CommissioningSuccess event is successfully raised.


Enjoy...
 

Attachments

  • SS_MatterCommissioning Lib.zip
    6.3 KB · Views: 2
  • SS_MatterCommissioning.zip
    14.7 KB · Views: 2
Last edited:
Upvote 0
Top