As A Service MQTT : we help the Sango release of

From today August 29, 2014, the parent company of 時雨堂 began providing a "Sango", which is a service that you can easily use the MQTT on the Internet.

https://sango.shiguredo.jp

The dashboard looks something like this and it shows the connection information for MQTT.

2014/08/29/sango-dashboard.png

If you have a GitHub account, you can start using it immediately. Currently only free plan is offered, plus we plan to start the 500 yen plan in October. Free plans will be offered for a long time.

For more information プレスリリース as Business Partners will look at, but here are the lightly usage and contents.

How to use Sango

Sango can log in easily with GitHub account.

When you log MQTT接続情報 as,

- 接続先 : mqtt://<MQTTサーバーのアドレス>:1883
- WebSocket接続先:  ws://<MQTTサーバーのアドレス>:8080/mqtt
- アクセス先トピック: shirou@github/#
- ユーザー名: shirou@github
- パスワード: ひみつ  <-- クリックすると表示されます

Will come out. Please note that each topic is assigned to each user.

You can easily try it from the command line using mosquitto. (Please install mosquitto in advance)

mosquitto_sub \
    -h <MQTTサーバーのアドレス> \
    -u shirou@github \
    -t "shirou@github/#"
    -P <パスワード>

If you, shirou@github/# will receive the sent to the message. Please do not send it to anything other than the topic assigned to each user.

Execute sub, from another terminal

echo "MQTT is Cooooool" |
mosquitto_pub \
    -h <MQTTサーバーのアドレス> \
    -u shirou@github \
    -t "shirou@github/#"
    -P <パスワード> \
    -s

If you do, it will be displayed in the part you are sub in a while ago.

Inside of Sango

Sango

  • MQTT Server written in Erlang / OTP
  • Web application written in Go language

It consists of two functions. We ツキノワ was responsible for this Web app part.

What you're doing is a big deal, just hitting the API on the MQTT Server side. There was also a sample on OAuth revel's site, and I could implement it in a moment.

Composition of contents

The following libraries are used.

For revel revelの紹介 please refer to the article.

It is gorm, but it was quite easy to use. This time the table structure is simple, but still we could implement SQL without writing a line.

After that, at the part that makes the CLI

I used it. I hope this is easy to use as well.

Summary

"As A Service MQTT : it was to help release of Sango."

This article briefly introduced Sango's introduction, usage, and its contents.

I think MQTT is a protocol that can be used in various ways. How about using Sango to try out the idea easily?

the next deployment

Currently only free plans are available, but we plan to start a 500 yen plan in October.

The 500 yen plan is

  • The number of concurrent connections : Can be used up to 10 connection
  • QoS : corresponding to 1, 2
  • Security : TLS support
  • Monthly maximum number of messages : 100,000

It is planned to be used more practically, and so on. Please expect it.