Meshtastic

Lightweight "User" App

I would like to write a easy lightweight android app based on java for “simple users” who only wants to send / receive messages and maybe find another person …

Is there such a client already in implementation ? Is anyone interested to work on the project ? Does anyone have a good start (maybe a Java API implementation / documentation ?

Thank you very much for your reply.

1 Like

There is one written in Kotlin available for Android. It used to be available on Google Play Store, but due to new(ish) policies being enforced, it is currently available from the Amazon app store and directly off of Github for now.

Does it meet your needs?

thanks, I know the meshtastic app for Android based on Kotlin. I can build and run it here on my systems.
I have some ideas to improve the app - but unfortunately I’m not so familiar with Kotlin, so I’m thinking about implementing a new app (that I could contribute) “from scratch” based on Java

1 Like

I can’t wait to test and try your futur app. Good luck in programming it.

1 Like

a description of the bluetooth communication (data format) would be realy helpfull … is there such a thing ?

1 Like

Check out the new docs: Bluetooth/serial/TCP protocol API | Meshtastic
Basically the same protobuf-structures are used across all protocols (serial, ble…).
If you’re not familiar with protocol buffers, it is a method to serialize structured data to a binary format. So, the data from/to a device is transmitted in binary protobufs over a bluetooth characteristic.

There are definitely some protocol buffer tools and libraries available for java.

1 Like

I am also more familiar with Java (on the desktop) than Kotlin, but Kotlin is fairly easily understandable for a Java developer. Perhaps something similar to the (unofficial) Go library may be useful. If you go down this route, I’d be interested in helping a little bit – mostly from the desktop J2SE side instead of Android Java.

1 Like

I think it is great if you want to do that. But for a java developer learning kotlin usually takes less than a week of working with a new codebase and reading the language tutorial.

(Also it is kinda the official future for Android, so a fun/useful skill to learn)

2 Likes

You are right - it should be much easier to get familiar with Kotlin instead of rewriting the whole communication part in another language. I see an additional plus on the Java side to open Meshtastic to new use cases that don’t exist on Android (e.g., pairing readers for submetering)

I can’t invest that much time - I’m still doing spikes to get a feel for the effort …

1 Like

sounds good - though Kotlin runs on any JVM (so anywhere Java works it works) or on Javascript or on native. So when you have time you might see about splitting out a “JVM Meshtastic API” layer as a refactored lib (which could then be used on android or other JVM platforms).

1 Like