--
You received this message because you are subscribed to the Google Groups "UAVCAN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavcan+un...@googlegroups.com.
To post to this group, send email to uav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uavcan/73d202b3-870f-4cad-8d48-c12d612a17e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Since I got the teensy version working I decided to give it a try. Here a couple of screen shots:
It shows the node I created but nothing I coming across - it appears that the node is not responding the getnodeinfo request. At least this version doesn't hang :)
Am I missing something I need to do in the sketch or something I can use to test it with?
--
You received this message because you are subscribed to the Google Groups "UAVCAN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavcan+un...@googlegroups.com.
To post to this group, send email to uav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uavcan/f0647f33-e349-4565-a6c6-bf1d4b486af9%40googlegroups.com.
using namespace uavcan;
using namespace protocol;
void startServer(Node<NodeMemoryPoolSize> *node)
{
/*
* Starting the server.
* This server doesn't do anything useful; it just prints the received request and returns some meaningless
* response.
*
* The service callback accepts two arguments:
* - a reference to a request structure (input)
* - a reference to a default-initialized response structure (output)
* The type of the input can be either of these two:
* - T::Request&
* - uavcan::ReceivedDataStructure<T::Request>&
* The type of the output is strictly T::Response&.
* Note that for the service data structure, it is not possible to instantiate T itself, nor does it make any
* sense.
*
* In C++11 mode, callback type defaults to std::function<>.
*/
static ServiceServer<GetNodeInfo> srv(*node);
const int srv_start_res = srv.start(
[&](const ReceivedDataStructure<GetNodeInfo::Request>& req, GetNodeInfo::Response& rsp)
{
OStream::instance() << req << OStream::endl << OStream::endl;
//rsp.status = ;
//rsp.software_version = ;
//rsp.hardware_version = ;
rsp.name = node->getName();
});
if (srv_start_res < 0)
{
Serial.print("Unable to start server! Exiting! ");
Serial.println(srv_start_res);
for(;;);
} else {
Serial.println("Server Starter");
}
}
--
You received this message because you are subscribed to the Google Groups "UAVCAN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavcan+un...@googlegroups.com.
To post to this group, send email to uav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uavcan/b965708b-3ce5-443c-8e9c-620c7d45985e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uavcan/27661664-d64d-429c-8069-758d6afd5e4f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uavcan/4b0ff2ea-2896-4151-aa60-a6b66a8d3156%40googlegroups.com.