A method for joining a cluster comprising a plurality of communicating electronic devices, said method being implemented by a processor of one of said communicating electronic devices or of a communicating electronic device foreign to said cluster, said electronic device comprising, in addition to said processor, a data memory, a first communication interface ensuring a wireless proximity communication with any other electronic device located within communication range, said memory and said communication interface cooperating with said processor, the data memory containing the value of an identifier dedicated to the communicating electronic device and a record to contain the current value of an identifier of a communicating electronic device acting as a cluster head, said method comprising:
- a step for receiving an enrollment message generated and transmitted by a third-party communicating electronic device, said enrollment message comprising the identifier of the device that transmitted said enrollment message and a datum expressing the capacity of said transmitting device to ensure a given service;
- a step for decoding said enrollment message and deducing therefrom said identifier of said device that transmitted the enrollment message and the datum expressing said capacity;
- a step for updating the record so that said record memorizes the value of the identifier of the device transmitting the decoded enrollment message and the value of the datum expressing the capacity of the transmitting device to ensure said service;
- wherein:
- the step for updating the record is not performed unless the datum expressing said capacity is greater than or equal to a minimum specific requirement threshold, said device implementing said method becoming a cluster member of which the device acting as a cluster head contains an identifier whose value is equal to the current identifier value memorized in said record.