diff --git a/client/src/app/led-presentation/led-presentation.component.ts b/client/src/app/led-presentation/led-presentation.component.ts index 2e0bf6c2f6eca64d8489afd5689351b1a3b6126a..cfd120306ffc285b56069a7e0753c2122e2bca24 100644 --- a/client/src/app/led-presentation/led-presentation.component.ts +++ b/client/src/app/led-presentation/led-presentation.component.ts @@ -29,7 +29,6 @@ export class LedPresentationComponent implements OnInit { } onValueChange(checked: boolean, id: number) { - console.log(checked); if (!checked) { this.setOff(id); } else { @@ -44,13 +43,11 @@ export class LedPresentationComponent implements OnInit { setOff(id: number) { this.sensorService.setLED(id, false).pipe(takeUntil(this.unsubscribe)).subscribe(result => { - console.log(result); this.leds.find(led => led.id === result.id)[0] = result; }); } setOn(id: number) { this.sensorService.setLED(id, true).pipe(takeUntil(this.unsubscribe)).subscribe(result => { - console.log(result); this.leds.find(led => led.id === result.id)[0] = result; }); } diff --git a/server/src/controllers/actuator.controller.ts b/server/src/controllers/actuator.controller.ts index 0c3e0ce868dec21bf86abe6195fd853c56d642ac..89d965391df12f4fe9e9105b62f437e421cc556f 100644 --- a/server/src/controllers/actuator.controller.ts +++ b/server/src/controllers/actuator.controller.ts @@ -26,7 +26,6 @@ export function setLED(req: Request, res: Response, next: NextFunction) { setLEDservice(id, newValue); const value = getLEDservice(id); - console.log(value); res.status(201).json({id,value}); }