Add support to send GRP UNAFFIL network announcement

4.32j_maint
firealarmss 2 years ago
parent 12fc111c4d
commit d382483f0f

@ -184,6 +184,7 @@ namespace fnecore
public const byte NET_ANNC_SUBFUNC_GRP_AFFIL = 0x00; // Announce Group Affiliation
public const byte NET_ANNC_SUBFUNC_UNIT_REG = 0x01; // Announce Unit Registration
public const byte NET_ANNC_SUBFUNC_UNIT_DEREG = 0x02; // Announce Unit Deregistration
public const byte NET_ANNC_SUBFUNC_GRP_UNAFFIL = 0x03; // Announce Group Affiliation Removal
public const byte NET_ANNC_SUBFUNC_AFFILS = 0x90; // Update All Affiliations
/*

@ -269,6 +269,21 @@ namespace fnecore
FneUtils.Write3Bytes(dstId, ref res, 3);
SendMaster(CreateOpcode(Constants.NET_FUNC_ANNOUNCE, Constants.NET_ANNC_SUBFUNC_GRP_AFFIL), res, 0, 0, true);
}
/// <summary>
/// Helper to send group affiliation removal announcement to the master.
/// </summary>
/// <param name="srcId"></param>
public void SendMasterGroupAffiliationRemoval(uint srcId)
{
// send message to master
byte[] res = new byte[3];
FneUtils.Write3Bytes(srcId, ref res, 0);
SendMaster(CreateOpcode(Constants.NET_FUNC_ANNOUNCE, Constants.NET_ANNC_SUBFUNC_GRP_UNAFFIL), res, 0, 0, true);
}
/// <summary>

Loading…
Cancel
Save

Powered by TurnKey Linux.