Probably something stupid I’m missing, I’m admittedly sub-par with webpage stuff.
document.getElementById("send-angle").onclick = function() {
robot.sendData({
skillID: skillID,
data: document.getElementById("jsonform-98-elt-Head.head-angle").value
})
}
The above code works with no issues–it sends whatever value is in the box as a string, which serves my purposes. However, when I try to put multiple items in the same send like below, I get nothing:
document.getElementById("send-angle").onclick = function() {
robot.sendData({
skillID: skillID,
data: {"HA!", document.getElementById("jsonform-98-elt-Head.head-angle").value}
})
}
Is sending a string array a no-no or am I just formatting things improperly?