You can use that function, but you will need to do the JSON data formatting yourself. That library does not provide any help with that part. You can see the format for the record procedure here: http://docs.exosite.com/rpc/#record
However, using record won’t actually help you here. The one second limit is on the actual data that is saved into the platform, not just how often you send it. My suggestion to you would be to do some small amount of processing on your data before writing it to the platform, something like an average or a sum (depending on what the data actually is).
If that isn’t possible you could aggregate the data into a single string type value, but with that method the off the shelf widgets won’t work with your data.