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 (C1, C2) comprising a plurality of communicating electronic devices (10, 10i, a1,..., a8, b1,..., b8,..., j1,..., j5), said memory and said communication means cooperating with said processing unit, the data memory storing the value of an identifier (ID, IDm, IDa) dedicated to the first communicating electronic device and a register arranged to include the current value (IDHc) of an identifier of a communicating electronic device (d2, h3) acting as a cluster head (C1, C2), said method including a step for sending a service message to the device acting as cluster head, and being characterized in that it includes: - a step prior to the sending of the service message for generating and sending, via the first communication means, a verification message for belonging to the cluster, said message encoding: i. the value (MAS-1) of the identifier of a second communicating electronic device as identifier of the communicating electronic device receiving said verification message for belonging to the cluster; 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 for belonging to said cluster; - a step, carried out if and only if a message acknowledging receipt of said message verifying belonging to the cluster is received before the expiration of a maximum waiting time determined from the sending of the message verifying belonging to the cluster, to decode said message acknowledging receipt and deduce therefrom: i. the value (MAA-2) of the identifier of the device receiving said message acknowledging receipt of the message verifying belonging to the cluster; ii. the value (MAA-1) of the identifier of the source device of said message acknowledging receipt of the message verifying belonging to the cluster; the step for sending a service message only being carried out if (126-y): - the deduced value (MAA-2) of the identifier of the device receiving the message acknowledging receipt of the message verifying belonging to the cluster is equal to that of the identifier of the first communicating electronic device; - the deduced value (MAA-1) of the identifier of the source device of said message acknowledging receipt of the message verifying belonging to the cluster is equal to that of the identifier of the second communicating electronic device. - a step prior to the sending of the service message for generating and sending, via the first communication means, a verification message for belonging to the cluster, said message encoding: i. the value (MAS-1) of the identifier of a second communicating electronic device as identifier of the communicating electronic device receiving said verification message for belonging to the cluster; 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 for belonging to said cluster; i. the value (MAS-1) of the identifier of a second communicating electronic device as identifier of the communicating electronic device receiving said verification message for belonging to the cluster; 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 for belonging to said cluster; - a step, carried out if and only if a message acknowledging receipt of said message verifying belonging to the cluster is received before the expiration of a maximum waiting time determined from the sending of the message verifying belonging to the cluster, to decode said message acknowledging receipt and deduce therefrom: i. the value (MAA-2) of the identifier of the device receiving said message acknowledging receipt of the message verifying belonging to the cluster; ii. the value (MAA-1) of the identifier of the source device of said message acknowledging receipt of the message verifying belonging to the cluster; i. the value (MAA-2) of the identifier of the device receiving said message acknowledging receipt of the message verifying belonging to the cluster; ii. the value (MAA-1) of the identifier of the source device of said message acknowledging receipt of the message verifying belonging to the cluster; - the deduced value (MAA-2) of the identifier of the device receiving the message acknowledging receipt of the message verifying belonging to the cluster is equal to that of the identifier of the first communicating electronic device; - the deduced value (MAA-1) of the identifier of the source device of said message acknowledging receipt of the message verifying belonging to the cluster is equal to that of the identifier of the second communicating electronic device.