All API calls are sent througt http POST requests. Their results are sent as POST-back.
/api/1
{
"req" : [ <register address> ]
}
{
"result" : <register data>
}
/api/2
{
"req" : [<register address>, <register data> ]
}
{
"result" : "success"
}
/api/3
{
"req" : [ <memory address>, <"base_t" count> ]
}
{
"result" : [ <data1>, <data2>, <data3>, <data4> ... ]
}
/api/4
{
"req" : [ <memory address>, [ <data1>, <data2>, <data3>, <data4> ... ] ]
}
{
"result" : "success"
}