[NF] Mqtt library changed
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
/*
|
||||
M2Mqtt - MQTT Client Library for .Net
|
||||
Copyright (c) 2014, Paolo Patierno, All rights reserved.
|
||||
Copyright (c) 2013, 2014 Paolo Patierno
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are made available under the terms of the Eclipse Public License v1.0
|
||||
and Eclipse Distribution License v1.0 which accompany this distribution.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
The Eclipse Public License is available at
|
||||
http://www.eclipse.org/legal/epl-v10.html
|
||||
and the Eclipse Distribution License is available at
|
||||
http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
Contributors:
|
||||
Paolo Patierno - initial API and implementation and/or initial documentation
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -23,7 +21,7 @@ namespace uPLibrary.Networking.M2Mqtt.Exceptions
|
||||
/// <summary>
|
||||
/// MQTT client exception
|
||||
/// </summary>
|
||||
public class MqttClientException : ApplicationException
|
||||
public class MqttClientException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
@@ -53,9 +51,9 @@ namespace uPLibrary.Networking.M2Mqtt.Exceptions
|
||||
public enum MqttClientErrorCode
|
||||
{
|
||||
/// <summary>
|
||||
/// Will topic length error
|
||||
/// Will error (topic, message or QoS level)
|
||||
/// </summary>
|
||||
WillTopicWrong = 1,
|
||||
WillWrong = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Keep alive period too large
|
||||
@@ -100,6 +98,35 @@ namespace uPLibrary.Networking.M2Mqtt.Exceptions
|
||||
/// <summary>
|
||||
/// Wrong Message Id
|
||||
/// </summary>
|
||||
WrongMessageId
|
||||
WrongMessageId,
|
||||
|
||||
/// <summary>
|
||||
/// Inflight queue is full
|
||||
/// </summary>
|
||||
InflightQueueFull,
|
||||
|
||||
// [v3.1.1]
|
||||
/// <summary>
|
||||
/// Invalid flag bits received
|
||||
/// </summary>
|
||||
InvalidFlagBits,
|
||||
|
||||
// [v3.1.1]
|
||||
/// <summary>
|
||||
/// Invalid connect flags received
|
||||
/// </summary>
|
||||
InvalidConnectFlags,
|
||||
|
||||
// [v3.1.1]
|
||||
/// <summary>
|
||||
/// Invalid client id
|
||||
/// </summary>
|
||||
InvalidClientId,
|
||||
|
||||
// [v3.1.1]
|
||||
/// <summary>
|
||||
/// Invalid protocol name
|
||||
/// </summary>
|
||||
InvalidProtocolName
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
/*
|
||||
M2Mqtt - MQTT Client Library for .Net
|
||||
Copyright (c) 2014, Paolo Patierno, All rights reserved.
|
||||
Copyright (c) 2013, 2014 Paolo Patierno
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are made available under the terms of the Eclipse Public License v1.0
|
||||
and Eclipse Distribution License v1.0 which accompany this distribution.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
The Eclipse Public License is available at
|
||||
http://www.eclipse.org/legal/epl-v10.html
|
||||
and the Eclipse Distribution License is available at
|
||||
http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
Contributors:
|
||||
Paolo Patierno - initial API and implementation and/or initial documentation
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -23,7 +21,7 @@ namespace uPLibrary.Networking.M2Mqtt.Exceptions
|
||||
/// <summary>
|
||||
/// Exception due to error communication with broker on socket
|
||||
/// </summary>
|
||||
public class MqttCommunicationException : ApplicationException
|
||||
public class MqttCommunicationException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Default constructor
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
/*
|
||||
M2Mqtt - MQTT Client Library for .Net
|
||||
Copyright (c) 2014, Paolo Patierno, All rights reserved.
|
||||
Copyright (c) 2013, 2014 Paolo Patierno
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are made available under the terms of the Eclipse Public License v1.0
|
||||
and Eclipse Distribution License v1.0 which accompany this distribution.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
The Eclipse Public License is available at
|
||||
http://www.eclipse.org/legal/epl-v10.html
|
||||
and the Eclipse Distribution License is available at
|
||||
http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
Contributors:
|
||||
Paolo Patierno - initial API and implementation and/or initial documentation
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -23,7 +21,7 @@ namespace uPLibrary.Networking.M2Mqtt.Exceptions
|
||||
/// <summary>
|
||||
/// Connection to the broker exception
|
||||
/// </summary>
|
||||
public class MqttConnectionException : ApplicationException
|
||||
public class MqttConnectionException : Exception
|
||||
{
|
||||
public MqttConnectionException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
/*
|
||||
M2Mqtt - MQTT Client Library for .Net
|
||||
Copyright (c) 2014, Paolo Patierno, All rights reserved.
|
||||
Copyright (c) 2013, 2014 Paolo Patierno
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are made available under the terms of the Eclipse Public License v1.0
|
||||
and Eclipse Distribution License v1.0 which accompany this distribution.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
The Eclipse Public License is available at
|
||||
http://www.eclipse.org/legal/epl-v10.html
|
||||
and the Eclipse Distribution License is available at
|
||||
http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
Contributors:
|
||||
Paolo Patierno - initial API and implementation and/or initial documentation
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -23,7 +21,7 @@ namespace uPLibrary.Networking.M2Mqtt.Exceptions
|
||||
/// <summary>
|
||||
/// Timeout on receiving from broker exception
|
||||
/// </summary>
|
||||
public class MqttTimeoutException : ApplicationException
|
||||
public class MqttTimeoutException : Exception
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user