An electrostimulation device includes an implantable internal unit, which includes an array of electrodes assembled on or in a housing, and affixing structure for affixing the unit with respect to a targeted anatomy of a patient, a microprocessor mounted in the housing and in communication with the electrodes, a transceiver mounted in the housing and in communication with the microprocessor, and a power supply for providing power to the electrodes, the microprocessor and the transceiver.