Prerequisite
- A Braincube IoT Server
- The application Braincube Transfer installe (see appsmanager to install new application)
- A Braincube platform with a repository to push files
Node settings
After you've drag-and-drop the node "Braincube Transfer Ng" into your flow you can open the menu to set it up by double clicking on it.

In this first menu you will find the main settings, let's review it together:
Database Name
It is the name of the database you are targetting in your Braincube environment, the memory base containinng raw data.
Primary key
The orimary key is used to differentiate if a message contains new information or should fill in a previous message. For example here we put msg.payload.timestamp, so for each new timestamp it will be a new dataset in your memory base, for a timestamp already sent it will fill in the existing one.
Braincube server
This setting will help you target the Braincube platform you want to send data to. We will focus on this one below
Interval
Interval will help you to specify at which frequency data are pushed to your Braincube Cloud environment.
Advanced settings
Max payload in sending queue
Remember, a payload is a message containing a set of useful values for your use. With this settings we can manage how many message are stored in your RAM before we store it in disk. The default value of 1000 should be enough to use RAM to store data for a few minutes.
Max number buffered on disk
This setting will be usefull when the RAM is full and we want to store data on disk to ensure we don't lose it. It is usefull for example when your IoT Server lost access to Braincube Cloud platform. Here is an array for you to have an idea of how long you can store data before any loss:

Braincube Server
By clickling on the pen close to Braincube Server you can open the page to set up this connection

There you will be able to "Configure transfer-Tool" in another page.
In this new page you will be asked to login with your Braincube account, chose the Braincube you want to target from the list you have access to and to chose a name for this new service account that will be created in Braincube:

Once it is done you can come back to your IoT Server and see the status of your connection:

Remember to click on Add > Done and to Deploy your flows to save this new connection
Update settings dynamically
It is possible with braincube-transfer-ngnode version 1.3.0 and after to dynamically update some settings using the message input.
It is allowed to change the memory base targeted using msg.memorybase. This can be used in such cases where you need to adapt the memory base targeted according to one of your data, for example if you have the plant name in your data set.
You can then input a message such as:
msg = {
memorybase: {{{MY_SITE_NAME}}},
payload: {{{MY_DATA}}}
}