Method for joining a cluster comprising a plurality of communicating electronic devices (10, 10i, a1,...,a8, b1,...,b8,..., j1,...,j5), said method being implemented by a processing unit of each of said communicating electronic devices or of a communicating electronic device foreign to said cluster (C1, C2), the said electronic device comprising, in addition to the said processing unit, a data memory, first communication means performing a wireless proximity communication with any other electronic device located within communication range, said memory and said communication means cooperating with said processing unit, 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 (d2, h3) 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 (d2, h3), said enrollment message comprising the identifier of the device (d2, h3) that transmitted said enrollment message and a datum expressing the capacity of said transmitting device to perform a given service; - a step for decoding said enrollment message and deducing therefrom said identifier of said device that transmitted the enrollment message (d2, h3) and the datum expressing said capacity; - a step for updating the record so that said record memorizes the value (IDHc) of the identifier of the device transmitting the decoded enrollment message and the value (CHc) of the datum expressing the capacity of the transmitting device to perform said service, the step for updating the record cannot be performed unless the datum expressing said capacity is greater than or equal to a specific minimum requirement threshold, said device implementing said method becoming a cluster member of which the device (d2, h3) acting as a cluster head contains an identifier whose value is equal to the current identifier value (IDHc) memorized in said record; - a step for transmitting a service message to the device (d2, h3) acting as a cluster head for the service considered; said method also comprising: - a step for evaluating the capacity of the device implementing said method, to provide a given service, said step consisting of estimating one or more operating parameters of said device and producing the datum expressing the capacity of said device to be able to perform the given service; - a step for comparing the datum expressing said capacity to a minimal functional requirement threshold; - a step for encoding and transmitting an enrollment message comprising the identifier of said device as well as the datum expressing the capacity of said device to be able to perform said given service to any communicating device situated within communication range, said step only being implemented if (112-y) the datum expressing said capacity is greater than or equal to said minimal functional requirement threshold. - a step for receiving an enrollment message generated and transmitted by a third-party communicating electronic device (d2, h3), said enrollment message comprising the identifier of the device (d2, h3) that transmitted said enrollment message and a datum expressing the capacity of said transmitting device to perform a given service; - a step for decoding said enrollment message and deducing therefrom said identifier of said device that transmitted the enrollment message (d2, h3) and the datum expressing said capacity; - a step for updating the record so that said record memorizes the value (IDHc) of the identifier of the device transmitting the decoded enrollment message and the value (CHc) of the datum expressing the capacity of the transmitting device to perform said service, the step for updating the record cannot be performed unless the datum expressing said capacity is greater than or equal to a specific minimum requirement threshold, said device implementing said method becoming a cluster member of which the device (d2, h3) acting as a cluster head contains an identifier whose value is equal to the current identifier value (IDHc) memorized in said record; - a step for transmitting a service message to the device (d2, h3) acting as a cluster head for the service considered; - a step for evaluating the capacity of the device implementing said method, to provide a given service, said step consisting of estimating one or more operating parameters of said device and producing the datum expressing the capacity of said device to be able to perform the given service; - a step for comparing the datum expressing said capacity to a minimal functional requirement threshold; - a step for encoding and transmitting an enrollment message comprising the identifier of said device as well as the datum expressing the capacity of said device to be able to perform said given service to any communicating device situated within communication range, said step only being implemented if (112-y) the datum expressing said capacity is greater than or equal to said minimal functional requirement threshold.