How to call Set & Get RPC request from Mdash to mOS in C

Hi

I see interesting function on mDash I want to know how can to call Custom RPC Service for Get and Set

for example I have function like this…

float temperature = 0;

void setTemp(float t) {
temperature = t; // setting from mdash
}

void getTemp() {
return temperature; // return to mdash
}

Looks at the RPC user guide, it shows you how to define a custom RPC handler that you can call like any of the built-in RPC methods from mDash.

There is some relevant RPC info in this post which explains how to call from mDash