Updated Service.js
Updated Service.js

You are looping through the "optionalCharacteristics", but trying to read at the index of the normal "characteristics". Therefore it will always return "undefined" when you request optional characteristics via "getCharateristics".
KhaosT/HAP-NodeJS,KhaosT/HAP-NodeJS,flexzuu/HAP-NodeJS,peterlee0127/HAP-YeeLight,polo14va/HAP-NodeJS,matthiaslau/HAP-NodeJS,pascalmartin/HAP-NodeJS,mrhornsby/HAP-NodeJS