mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: remove deprecated RECEIVED_DATA broadcast
This commit is contained in:
parent
dcb19da723
commit
ed649470f9
3 changed files with 1 additions and 16 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue