Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinribeiro/glass-gdk-lowfreq-mqtt-live-card
Sample Glassware GDK application that shows the use of Eclipse Paho/MQTT for low frequency live card.
https://github.com/justinribeiro/glass-gdk-lowfreq-mqtt-live-card
Last synced: 7 days ago
JSON representation
Sample Glassware GDK application that shows the use of Eclipse Paho/MQTT for low frequency live card.
- Host: GitHub
- URL: https://github.com/justinribeiro/glass-gdk-lowfreq-mqtt-live-card
- Owner: justinribeiro
- License: apache-2.0
- Created: 2014-06-09T23:51:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-10T00:22:48.000Z (over 10 years ago)
- Last Synced: 2024-10-24T00:04:24.201Z (28 days ago)
- Language: Java
- Size: 316 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
glass-gdk-lowfreq-mqtt-live-card
================================Sample Glassware GDK application that shows the use of Eclipse Paho/MQTT for low frequency live card.
## Setup
1. This uses project uses Gradle.
2. You'll need the latest Google GDK add-on from Android SDK Tools
3. I've included a pre-built Eclipse Paho jar, but make sure it's in your build path## Broker setup
If you have a look in LiveCardService.java you'll see the set of variables you'll need to change.
```java
private static String MqttBrokerUri = "tcp://MY_BROKER:1883";
private static String MqttClientId = "glass-randomid";
private static String MqttBrokerTopic = "sensors/ard-04";
```## I have no MQTT enabled Arduino or Pi!
You can still send messages to the app as long as you have something like [mosquitto_pub](http://mosquitto.org/documentation/):```
mosquitto_pub -h MY_BROKER -t sensors/ard-04 -m 98.0
```The command above just says "send 98.0 to the topic sensors/ard-04 at the host MY_BROKER".