简体   繁体   中英

is there a way to use JMS (java message service) on ESP32?

I'm trying to build an application in which I want to use the JMS (java message service). Unfortunately, I'm unable to find any libraries specifically for ESM32-WROOM online. So, can anyone help me with how can I build the JMS stack for ESM32-WROOM on my own if it's possible!. In my application, the ESP32-WROOM will get messages from the server every second.

As noted in your question, JMS is the Java Message Service so in order to use it you'd need to use Java which would require a Java Virtual Machine (ie JVM). The JVM is a sophisticated piece of software which is almost certainly not supported on ESP32.

Most JMS providers also support other protocols for IoT devices like ESP32. For example, ActiveMQ Artemis supports JMS as well as MQTT (among other protocols). MQTT is a protocol specifically created for small sensors and mobile devices. It is optimized for high-latency or unreliable networks which makes it a good fit for IoT devices. I recommend you use MQTT on your device if possible. Take a look at the ESP32 MQTT Library .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM