From bd74d64be0a8c4272a226c18a799e3de0ab47827 Mon Sep 17 00:00:00 2001 From: Vadim Furman Date: Tue, 13 Apr 2021 17:42:24 -0700 Subject: [PATCH] Added utf8 to Datapacket to make the remote IMeshService work --- app/src/main/java/com/geeksville/mesh/DataPacket.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/geeksville/mesh/DataPacket.kt b/app/src/main/java/com/geeksville/mesh/DataPacket.kt index 352cdfa6..ee5df494 100644 --- a/app/src/main/java/com/geeksville/mesh/DataPacket.kt +++ b/app/src/main/java/com/geeksville/mesh/DataPacket.kt @@ -4,6 +4,8 @@ import android.os.Parcel import android.os.Parcelable import kotlinx.parcelize.Parcelize import kotlinx.serialization.Serializable +import java.nio.charset.Charset + @Parcelize enum class MessageStatus : Parcelable { @@ -144,6 +146,8 @@ data class DataPacket( override fun newArray(size: Int): Array { return arrayOfNulls(size) } + val utf8 = Charset.forName("UTF-8") } + } \ No newline at end of file