I use https://github.com/sskaje/mqtt Lib And It Work With Activemq Broker
Very Well
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367p4699314.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
can help.
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367p4699230.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>
to solve the problem.
> I appreciate it if anybody can help.
>
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367p4699230.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
ivemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367p4699230.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
$bytes = ord(substr($string,1,1));
$string = $this->read($bytes);
}
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367p4698578.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
a.io.IOException: Unexpected error
occurred: java.lang.ArrayIndexOutOfBoundsException: 9 |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:27519@1885
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-whe
/* strwritestring: writes a string to a buffer */
function strwritestring($str, &$i){
$ret = " ";
$len = strlen($str);
$msb = $len >> 8;
$lsb = $len % 256;
$ret = chr($msb);
$ret .= chr($lsb);
$ret .= $str;
$i += ($len+2);
return $ret;
}
function printstr($string){
$strlen = strlen($string);
for($j=0;$j<$strlen;$j++){
$num = ord($string{$j});
if($num > 31)
$chr = $string{$j}; else $chr = " ";
printf("%4d: %08b : 0x%02x : %s
\n",$j,$num,$num,$chr);
}
}
}
?>
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367p4698437.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
b Example"); //Change
>> client name to something unique
>>
>> if(!$mqtt->connect()){
>> exit(1);
>> }
>>
>> $topics['chat/general'] = array("qos"=>0, "function"=>"procmsg");
>> $mqtt->s
)){
>
> }
>
>
> $mqtt->close();
>
> function procmsg($topic,$msg){
> echo "Msg Recieved: ".date("r")."\nTopic:{$topic}\n$msg\n";
> }
>
>
>
> ?>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
ot;\nTopic:{$topic}\n$msg\n";
}
?>
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
10 matches
Mail list logo