mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-20 11:49:32 -04:00
refactor: remove deprecated RECEIVED_DATA broadcast
This commit is contained in:
@@ -85,9 +85,6 @@ class MeshService : Service(), Logging {
|
||||
|
||||
/// Intents broadcast by MeshService
|
||||
|
||||
/* @Deprecated(message = "Does not filter by port number. For legacy reasons only broadcast for UNKNOWN_APP, switch to ACTION_RECEIVED")
|
||||
const val ACTION_RECEIVED_DATA = "$prefix.RECEIVED_DATA" */
|
||||
|
||||
private fun actionReceived(portNum: String) = "$prefix.RECEIVED.$portNum"
|
||||
|
||||
/// generate a RECEIVED action filter string that includes either the portnumber as an int, or preferably a symbolic name from portnums.proto
|
||||
|
||||
@@ -24,13 +24,6 @@ class MeshServiceBroadcasts(
|
||||
payload
|
||||
)
|
||||
)
|
||||
|
||||
/*
|
||||
// For the time being we ALSO broadcast using old ACTION_RECEIVED_DATA field for any oldschool opaque packets
|
||||
// newer packets (that have a non zero portnum) are only broadcast using the standard mechanism.
|
||||
if(payload.dataType == Portnums.PortNum.UNKNOWN_APP_VALUE)
|
||||
explicitBroadcast(Intent(MeshService.ACTION_RECEIVED_DATA).putExtra(EXTRA_PAYLOAD, payload))
|
||||
*/
|
||||
}
|
||||
|
||||
fun broadcastNodeChange(info: NodeInfo) {
|
||||
|
||||
Reference in New Issue
Block a user