Documentation
CSV_SendCyclic
Require: Symcon >= 7.0
void CSV_SendCyclic (int $InstanceID, string $Method)
Parameters
| InstanceID | ID of the instance |
| Method | Empty for all methods enabled for the cyclic sending, "Mail" or "FTP" for only one method |
Returns
No return
Description
Exports the selected variables for the last complete interval and sends the export. If Method is empty, the export is sent with the methods enabled for the cyclic sending. This is how the cyclic sending calls the function. With "Mail" or "FTP" the export is only sent with this method, even if the cyclic sending is disabled, like with the buttons "Send Mail Now" and "Send File now". Afterwards the exported file is deleted.
Example
// Only upload the last interval to the server
CSV_SendCyclic(12345, 'FTP');