how to use this in my project?

6 posts / 0 new
Last post
Reiner
how to use this in my project?

I follow the readme file but it couldn't run.
my bulid.grade had import these:
implementation 'com.github.gurux:gurux.common.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.dlms.android:-SNAPSHOT'
but when i follow the readme file to do next step in
public void readDLMSPacket(byte[] data, GXReplyData reply){..}
it warn me that 'GXDevice' isnt exist
and this "IGXMedia" in import gurux.common.IGXMedia is a interface without 'getmedia()'
IGXMedia media = mDevice.getMedia();
is it something wrong i done ? Could you please teaching me how to use it in android?

Kurumi
Kurumi's picture

Hi,

Have you tried to run the client example?
https://github.com/Gurux/Gurux.DLMS.Android

Open that and use it as a template.

BR,
Mikko

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

Reiner

I had tried to run this client ,but when run this project it would show a toast like this:
‘java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.’
is it means that your client has something error in ssl?

Kurumi
Kurumi's picture

Hi,

What Android studio version you are using?

BR,
Mikko

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

Reiner

Hello,
my Android studio version: 'Android Studio Arctic Fox | 2020.3.1 Patch 3'
and if i want to use the Bluetooth com to read something by this utils,it could be possible to come true?

Kurumi
Kurumi's picture

Hi,

If your Bluetooth device is shown as a serial port you can read it right now.
Direct Bluetooth support is not implemented yet.

BR,
Mikko

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