Make plugin_send use a reference tothe vector
@@ -161,7 +161,7 @@ PLUGIN_HANDLE plugin_init(map<string, string>&& configData)
* Send Readings data to historian server
*/
uint32_t plugin_send(const PLUGIN_HANDLE handle,
- const vector<Reading *> readings)
+ const vector<Reading *>& readings)
{
ThingSpeak *thingSpeak = (ThingSpeak *)handle;
