Builing Android app, help?

9 posts / 0 new
Last post
hurani
Builing Android app, help?

Dear sir,
I am trying to build app from source code in github, and its built succefully, but the app didnt download spinners content like "manufacturers" and the rest of contents!
I found in the code that there is folder in the project contain whole files but cant be built.
another question, how to add your code to read data of meter in my app using kotlin lang.?
thank you in advance

hurani

I pulled request commit on github for fix, please accept it.
The 2nd question still, How to import this function to my Kotlin App?

Kurumi
Kurumi's picture

Hi,
Thank you for this info. This is added and tested. This change is updated and your name is added to credits.

You should add this for your projects:

implementation("org.gurux:gurux.serial.android:-SNAPSHOT")
implementation("org.gurux:gurux.dlms.android:-SNAPSHOT")

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

hurani

Hi,
Thank you, I will try it soon, may I ask you if I can use redz-kmk119 bluetooth optical probe how to use bluetooth?
Can I send special command to the meter and I get reply?
Thank you so much

hurani

what about this:
implementation project(':gurux.dlms.android')?
How implement it cause it is in java?

Kurumi
Kurumi's picture

Hi,

You can call Java libraries from Kotlin.

There is no Bluetooth media at the moment. You can only use TCP/IP or USB to serial port converters.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

hurani

then how to send command to meter using android app to get data?
I read readme of "https://github.com/Gurux/Gurux.DLMS.Android"?
but I cant get it work!

Kurumi
Kurumi's picture

Hi,

You can use Gurux libraries to generate correct messages, but you need to send frames to the bluetooth device by your seld.

We have a little time at the end of this month and it's possible that we'll add support for Bluetooth then.
If you can't wait, you can implement Bluetooth by your self.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

hurani

Thank you sir, I am waiting it then.