A method implemented by a processing unit of a first communicating electronic device further including a data memory, first communication means providing nearby wireless communication with any other communicating electronic device situated within communication range within a cluster comprising a plurality of communicating electronic devices, said memory and said communication means cooperating with said processing unit, the data memory storing a value of an identifier dedicated to the first communicating electronic device and a register arranged to include the current value of an identifier of a communicating electronic device acting as a cluster head, said method including a step for sending a service message to the device acting as cluster head, and further comprising:
- a step prior to the sending of the service message for generating and sending, via the first communication means, a verification message (MAS) for belonging to the cluster, said verification message encoding:
- i. the value (MAS-1) of the identifier of a second communicating electronic device as identifier of the communicating electronic device recipient of said verification message (MAS) for belonging to the cluster;
- and
- ii. the value (MAS-2) of the identifier of the first device as identifier of the communicating electronic device that is the source of said verification message (MAS) for belonging to said cluster;
- and
- a step of sending the service message in response to receiving an acknowledgment of the verification message.