Skip to content

Commit

Permalink
Change type of parameter for method _processMqttMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecatoncheir committed Jul 28, 2017
1 parent 095443f commit 9729f98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/mqtt_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,11 @@ class MqttClient<E extends VirtualMqttConnection> {
*
* Return the data that has not been processed
*/
List<int> _processMqttMessage(ByteBuffer details) {
var data = details.asInt8List();
List<int> _processMqttMessage(dynamic details) {
var data = details;

if (details.runtimeType.toString() != 'Uint8List') data = details.asInt8List();

num type = data[0] >> 4;
int msgProcessedLength = data.length;

Expand Down

0 comments on commit 9729f98

Please sign in to comment.