When I try to connect to the Central Europe server to get the device as per the "getting started" code I get a 1106 permission deny error. The gateway device that I am trying to connect to has "Read, write, and Manage" permissions.
import { TuyaContext } from '@tuya/tuya-connector-nodejs';
const tuya = new TuyaContext({
baseUrl: 'https://openapi.tuyaeu.com',
accessKey: process.env['ACCESSID'],
secretKey: process.env['ACCESSSECRET'],
});
export const getDevice = async () => {
const device = await tuya.device.detail({
device_id: process.env['DEVICEID']
});
}
When I try to connect to the Central Europe server to get the device as per the "getting started" code I get a 1106
permission denyerror. The gateway device that I am trying to connect to has "Read, write, and Manage" permissions.