User Manual

usageWriteAFileToFolderAndReadBack.js Test

Node.js test case for awaBerry API file operations. Demonstrates writing and reading files on a remote device using the Node.js client.

usageWriteAFileToFolderAndReadBack.js Test

This test demonstrates file read/write permissions using the awaBerry Node.js API client. Create a project in awaBerry agentic using the permission config of awaberry_agent_project_limitedprojecttoreadandwritefilesinfolder.json (upload it in the project creation view). Change the configured folder for the project if required. Select only one device (in case you have connected more than one). Create the project.

Execution

node usageWriteAFileToFolderAndReadBack.js <projectKey> <projectSecret>
Back to Node.js API Client