Is MQTT possible?

  1. 3 years ago

    apt

    16 Jun 2018 User since 2018

    Just come across Creo and very excited to give it a go.

    I’m interested in creating an MQTT based app for connection to Home Assistant (http://home-assistant.io ) and wondering if this type of communication protocol is possible with Creo?

    MQTT is based on tcp/ip (http://mqtt.org )

    Thanks

  2. marco

    17 Jun 2018 Administrator User since 2016

    Hi @apt Creo supports TCP and UDP as low level networking protocol so in theory you could re-create the MQTT protocol from scratch within Creo. I checked the MQTT website and I can see a lot of client libraries already developed in C and ObjC so I think you should not reinvent the wheel.

    My recommendation is to wait for the official Creo Plugin SDK that will give you the ability to extends Creo with new classes, controls and protocol (so you'll be able to use an existing client library). Official SDK will be available in about a 4/5 weeks.

  3. apt

    17 Jun 2018 User since 2018
    Edited 3 years ago by apt

    Thanks for he reply. I’ll look forward to the SDK.
    It looks like Home-assistant also has a REST api so this may be a better solution tbh: https://developers.home-assistant.io/docs/en/external_api_rest.html

    Also what is the release schedule for Creo, I only discovered Creo recently but I can see there have been lots of betas leading up to v1.0. Do you plan on releasing fixes and new features on a regular basis going my forward?

  4. marco

    17 Jun 2018 Administrator User since 2016

    If a REST api is available so it is definitely the best option. Creo already supports REST api and you can display in real-time the result of the queries. Take a look at the Spotify tutorial for more information about REST api: https://docs.creolabs.com/tutorials/spotify.html

    Starting from 1.0 we'll regularly update Creo. Version 1.0.1 will be out within a couple of days, followed by another release within two weeks.

  5. apt

    17 Jun 2018 User since 2018

    That’s REST api was incredible easy to implement.

    I’m sure I’ll have other questions as I progress.

  6. marco

    17 Jun 2018 Administrator User since 2016

    Absolutely no problem... just ask us.

or Sign Up to reply!