Errors in Agent API documentation

I think there are some typos in the new Agent API docs.

In you describe the agent.on()/device.send() mechanism but code examples below says device.on() and device.send().

In there’s a typo (?). The table example contains a comma, but I think you either should use table syntax { Content-Type = "text/xml" } or JSON syntax { "Content-Type": "text/xml" }.

Same ting in

Thanks for that: fixed now, I think. In fact in this case you need to use the JSON syntax, because “Content-Type” isn’t a valid Squirrel identifier.