You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: look at Nina Firmware code to understand conditions
243
+
// that lead to NinaProtocolVersionMismatch
244
+
#[derive(Debug,PartialEq)]
245
+
pubenumProtocolError{
246
+
NinaProtocolVersionMismatch,
247
+
CommunicationTimeout,
248
+
InvalidCommand,
249
+
InvalidNumberOfParameters,
250
+
TooManyParameters,
251
+
}
252
+
253
+
implFormatforProtocolError{
254
+
fnformat(&self,fmt:Formatter){
255
+
matchself{
256
+
ProtocolError::NinaProtocolVersionMismatch => write!(fmt,"Encountered an unsupported version of the NINA protocol."),
257
+
ProtocolError::CommunicationTimeout => write!(fmt,"Communication with ESP32 target timed out."),
258
+
ProtocolError::InvalidCommand => write!(fmt,"Encountered an invalid command while communicating with ESP32 target."),
259
+
ProtocolError::InvalidNumberOfParameters => write!(fmt,"Encountered an unexpected number of parameters for a NINA command while communicating with ESP32 target."),
260
+
ProtocolError::TooManyParameters => write!(fmt,"Encountered too many parameters for a NINA command while communicating with ESP32 target."),
0 commit comments