MCPcopy Create free account
hub / github.com/UtilitechAS/amsreader-firmware / write

Method write

lib/AmsDecoder/src/MbusParser.cpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80uint16_t MBUSParser::write(const uint8_t* d, DataParserContext &ctx) {
81 if(buf != NULL) {
82 memcpy((uint8_t *) d, buf, pos);
83 ctx.length = pos;
84 }
85 return 0;
86}
87
88uint8_t MBUSParser::checksum(const uint8_t* p, int len) {
89 uint8_t ret = 0;

Callers 10

CloudConnector.cppFile · 0.45
copyFileMethod · 0.45
saveMethod · 0.45
AmsWebServer.cppFile · 0.45
saveMethod · 0.45
addversion.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected