Happy Singh is telecasted daily and I hear it mostly when I am driving back to home from office @7 PM, I am a big fan of Happy Singh's sense of humour. Listen it you will surely like it.
For MQTT integration, recently explored Paho Android project, very simple to use, here are the steps: Intialize a client, set required options and connect. MqttAndroidClient mqttClient = new MqttAndroidClient(BaseApplication.getAppContext(), broker, MQTT_CLIENT_ID); //Set call back class mqttClient.setCallback(new MqttCallbackHandler(BaseApplication.getAppContext())); MqttConnectOptions connOpts = new MqttConnectOptions(); IMqttToken token = mqttClient.connect(connOpts); Subscribe to a topic. token.setActionCallback(new IMqttActionListener() { @Override public void onSuccess(IMqttToken arg0) { mqttClient.subscribe("TOPIC_NAME" + userId, 2, null, new IMqttActionListener() { @Override public void ...
Comments
Post a Comment