Closed
Description
Hello. I am trying to call the arduino create agent plugin from my localhost to upload a hex file to my arduino. I generated a pair of public and private keys and updated the public key in the config.ini file. Then I am generating the signature of my commandline using my private key and then I am updating the same on the js code. But still when I run the code, I am getting "Signature is Invalid". Any ideas as to what I am doing wrong. I am pasting the json payload I am trying to upload .
var abcData = {
"board":"arduino:avr:uno",
"port":"COM18",
"commandline":"\"C:\Program Files(x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM15 -b115200 -D -Uflash:w:C:\Users\ChatteAr\AppData\Local\Temp\arduino_build_876546/flasher_tryout.ino.hex:i\"",
"signature":"uJsl8iXd9hNsA6ExtE7msUGaP1/9KU+Yx...." ,
"hex":"EAAAAAyUXQAMlIUADJSFAAyUhQCEEAAQAAyUhQAMlIUADJSFAAyUhQBMEAAgAAyUhQAMlIUAD.....",
"filename":"flasher_tryout.ino.hex",
"extra":{
"auth":{
"username":null,
"password":null,
"privatekey":null,
"port":null
},
"wait_for_upload_port":false,
"use_1200bps_touch":false,
"network":false,
"params_verbose":null,
"params_quiet":null,
"verbose":false ,
"ssh":false}
};
url= "http://localhost:8991/upload";