I am an IoT and Node newbie so apologize if it's mere ignorance.
I am trying to connect Intel edison to AWS IoT and trying to run the same app to verify the messages published by light sensor.
However I am getting the following error :
root@kedison:~/aws-iot-device-sdk-js# node edison-basic.js
var activeSubscriptions = new Map();
ReferenceError: Map is not defined
at new DeviceClient (/home/root/aws-iot-device-sdk-js/device/index.js:232:34)
at Function.DeviceClient (/home/root/aws-iot-device-sdk-js/device/index.js:164:14)
at new ThingShadowsClient (/home/root/aws-iot-device-sdk-js/thing/index.js:123:32)
at ThingShadowsClient (/home/root/aws-iot-device-sdk-js/thing/index.js:89:14)
at update_state (/home/root/aws-iot-device-sdk-js/edison-basic.js:81:24)
at Object. (/home/root/aws-iot-device-sdk-js/edison-basic.js:75:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
I tried the suggestions as per this thread -
Have all packages and dependencies installed. Looks to me like a code issue and any help that you could provide would be greatly appreciated.
Let me know if this helps.