update HTTP and MQTT wrappers for Java