MQTT FAQ

What should we use as the MQTT client when using an MQTT API?
Any client can be used as long as it is compatible with the MQTT protocol.
Please select and use the MQTT client which best suits your needs.
We sometimes have difficulties connecting to the IoT-PF. What could be causing this?
The reasons you may not be able to connect via MQTT are as follows.

1. A redundant client ID is used when calling using CONNECT.
2. A value other than the value to be fixed has been set as the IoT-PF in the MQTT header.

To resolve issue 1., we recommend using IDs that do not overlap upon each connection.
To resolve issue 2., refer to the API Reference Guide for more information on values that need to be set as fixed values in the MQTT header.
I prefer to implement KeepAlive to prevent MQTT connection dropouts. How should I go about this?
You can implement KeepAlive for MQTT in the following ways.

1. Periodic transmission of PINGREQ
2. PUBLISH registration of dummy data

Fujitsu recommends method 1. However, please be aware that, depending on your service provider, disconnections may still occur even when sending PINGREQ on a periodic basis.