log processed data
| 115 | |
| 116 | // log processed data |
| 117 | void Log::ShowData(uint bytes, bool sent) |
| 118 | { |
| 119 | char msg[MAX_MSG]; |
| 120 | char number[16]; |
| 121 | |
| 122 | if (sent) |
| 123 | strncpy(msg, "Sent ", 10); |
| 124 | else |
| 125 | strncpy(msg, "Received ", 10); |
| 126 | sprintf(number, "%u", bytes); |
| 127 | strncat(msg, number, 8); |
| 128 | strncat(msg, " bytes of application data", 27); |
| 129 | |
| 130 | msg[MAX_MSG - 1] = 0; |
| 131 | Trace(msg); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | #else // no YASSL_LOG |
no outgoing calls
no test coverage detected