This paper reports experimental data obtained on the COMPASS tokamak by an array of Langmuir probes embedded in the divertor tiles. The measured current-voltage probe characteristics were processed by the recently published first-derivative probe technique for precise determination of the plasma potential and the electron energy distribution function (EEDF). The measurements were performed during L-mode hydrogen and deuterium plasma with a toroidal magnetic field Bt = 1.15 T, plasma current Ip = 180 kA and average electron density ne = 8*1019 m-3. The spatial profile of the electron temperatures shows that in the vicinity of the inner and outer strike points in hydrogen plasma the EEDF can be approximated by a bi-Maxwellian distribution, with a dominating low-energy electron population (4 - 7 eV) and a minority of electrons with higher energies (12 - 18 eV). In the private flux region between the two strike points, the EEDF is found to be Maxwellian with temperatures in the range of 7 - 9 eV. In the case of deuterium plasma under similar discharge conditions, the EEDFs in the vicinity of the inner and outer strike points, as well as in the private flux region between the two strike points, are found to be bi-Maxwellian.