MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetNodeString

Method GetNodeString

cpp/src/platform/winRT/LogImpl.cpp:286–306  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Generate a string with formatted node id -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

284// Generate a string with formatted node id
285//-----------------------------------------------------------------------------
286string LogImpl::GetNodeString
287(
288 uint8 const _nodeId
289)
290{
291 if( _nodeId == 0 )
292 {
293 return "";
294 }
295 else
296 if( _nodeId == 255 ) // should make distinction between broadcast and controller better for SwitchAll broadcast
297 {
298 return "contrlr, ";
299 }
300 else
301 {
302 char buf[20];
303 snprintf( buf, sizeof(buf), "Node%03d, ", _nodeId );
304 return buf;
305 }
306}
307
308//-----------------------------------------------------------------------------
309// <LogImpl::GetThreadId>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected