Feng Lee 11 lat temu
rodzic
commit
f3057c08e4
3 zmienionych plików z 47 dodań i 50 usunięć
  1. 28 0
      CHANGELOG.md
  2. 0 50
      apps/emqtt/src/x.erl
  3. 19 0
      scripts/mosquitto_test

+ 28 - 0
CHANGELOG.md

@@ -1,6 +1,34 @@
 eMQTT ChangeLog
 ==================
 
+v0.3.0-alpha (2015-01-18)
+------------------------
+
+NOTICE: Full MQTT 3.1.1 support now!
+
+Feature: Passed org.eclipse.paho.mqtt.testing/interoperability tests
+
+Feature: Qos0, Qos1 and Qos2 publish and suscribe
+
+Feature: session(clean_sess=false) management and offline messages
+
+Feature: redeliver awaiting puback/pubrec messages(doc: Chapter 4.4)
+
+Feature: retain messages, add emqtt_server module
+
+Feature: MQTT 3.1.1 null client_id support
+
+Bugfix: keepalive timeout to send will message 
+
+Improve: overlapping subscription support
+
+Improve: add emqtt_packet:dump to dump packets
+
+Test: passed org.eclipse.paho.mqtt.testing/interoperability
+
+Test: simple cluster test
+
+
 v0.2.1-beta (2015-01-08)
 ------------------------
 

+ 0 - 50
apps/emqtt/src/x.erl

@@ -1,50 +0,0 @@
--module(x).
--behaviour(gen_server).
--define(SERVER, ?MODULE).
-
-%% ------------------------------------------------------------------
-%% API Function Exports
-%% ------------------------------------------------------------------
-
--export([start_link/0]).
-
-%% ------------------------------------------------------------------
-%% gen_server Function Exports
-%% ------------------------------------------------------------------
-
--export([init/1, handle_call/3, handle_cast/2, handle_info/2,
-         terminate/2, code_change/3]).
-
-%% ------------------------------------------------------------------
-%% API Function Definitions
-%% ------------------------------------------------------------------
-
-start_link() ->
-    gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
-
-%% ------------------------------------------------------------------
-%% gen_server Function Definitions
-%% ------------------------------------------------------------------
-
-init(Args) ->
-    {ok, Args}.
-
-handle_call(_Request, _From, State) ->
-    {reply, ok, State}.
-
-handle_cast(_Msg, State) ->
-    {noreply, State}.
-
-handle_info(_Info, State) ->
-    {noreply, State}.
-
-terminate(_Reason, _State) ->
-    ok.
-
-code_change(_OldVsn, State, _Extra) ->
-    {ok, State}.
-
-%% ------------------------------------------------------------------
-%% Internal Function Definitions
-%% ------------------------------------------------------------------
-

+ 19 - 0
scripts/mosquitto_test

@@ -0,0 +1,19 @@
+#!/bin/sh
+# -*- tab-width:4;indent-tabs-mode:nil -*-
+# ex: ts=4 sw=4 et
+
+# slimple publish
+mosquitto_pub -t xxx/yyy -m hello 
+if [ "$?" == 0 ]; then
+    echo "[Success]: slimple publish"
+else
+    echo "[Failure]: slimple publish"
+fi
+
+# publish will willmsg 
+mosquitto_pub -q 1 -t a/b/c -m hahah -u test -P public --will-topic /will --will-payload willmsg --will-qos 1
+if [ "$?" == 0 ]; then
+    echo "[Success]: publish with willmsg"
+else
+    echo "[Failure]: publish with willmsg"
+fi