diff --git a/node-server/assets/front.html b/node-server/assets/front.html index 9b4b190..510334e 100644 --- a/node-server/assets/front.html +++ b/node-server/assets/front.html @@ -52,8 +52,8 @@ - - + + \ No newline at end of file diff --git a/node-server/assets/script.js b/node-server/assets/script.js index 2d27620..083b8c8 100644 --- a/node-server/assets/script.js +++ b/node-server/assets/script.js @@ -12,6 +12,12 @@ const loopBtn = document.getElementById('loop'); let isPlaying = false; let isLooping = false; +// sokcet.io & arduino serial info +const socket = io(); +socket.on('position', (position) => { + console.log('recieved position', position); +}); + // 3. Fonctions // Fonction pour basculer la lecture