User Manual

awaBerry | usageWriteAFileToFolderAndReadBack.js Test

Node.js example: write a file to a folder on a remote device via the awaBerry Agentic API and read it back — step-by-step code walkthrough.

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