Hello, I’m using device.subscribe
with SparkJS after fetching my cores using spark.getAttributesForAll()
.
One of my cores (the only one currently connected) does not have the subscribe function. The other two has it:
for (var i=0; i<devices.length; i++){
var d = devices[i];
console.log(d.name + " " + d.subscribe);
}
Outputs:
Astro Core function (eventName, callback) {
return this._spark.getEventStream(eventName, this.id, callback);
}
Snickarboa undefined
Testcore function (eventName, callback) {
return this._spark.getEventStream(eventName, this.id, callback);
}
Why does the connected core “Snickarboa” not have the subscribe function?
Cheers