anchor.diff:  	Result = {rf_address, RF_address, [{temp, Temp/2}, {value, Value}, {date, Date}, {time, Time},
   							 {error, value(error,Error)}, {answer,value(answer,Answer)},{state,State}, 
   							 {battery, value(battery, Battery)}, {linkstatus, value(linkstatus,Linkstatus)}, 
  -							 {panel, value(panel,Panel)}, {gateway, value(gateway,Gateway)}, {dst, value(dst,Dst)}]},	
  +							 {panel, value(panel,Panel)}, {gateway, value(gateway,Gateway)}, {dst, value(dst,Dst)}]},
  +	lager:info("1.Length of the rest : ~p", [byte_size(Rest) ]),
   	decode_l(Rest, [Result|Acc]);
   
   decode_l(<<12,
  
positive.code: 	{rf_address, RF_address, [{device_type, Device_type}, {room_id, Room_id}, {serial, Serial}, {com_temp, Com_temp}, {eco_temp, Eco_temp},
  	{max_set_point, Max_set_point_temp}, {min_set_point_temp, Min_set_point_temp},{temp_offset, Temp_offset}, {Window_open_temp, Window_open_temp},
  	{window_open_duration, Window_open_duration}, {boost_duration_value, Boost_duration_value}, {day_of_week_and_time, Day_of_week_and_time}, {max_value, Max_value},
  	{value_offset, Value_offset}]}.
  %% --------------------------------------------------------------------
  %%% Internal functions
  %% --------------------------------------------------------------------
  
negative.code: decode_m_1_test() ->
  	M = <<"M:00,01,VgICAgpXb2huemltbWVyCyORAQpOw6RoemltbWVyCG1IBAELI5FLRVEwNTU4NjU1EFRoZXJtb3N0YXQgbGlua3MCAQlCUktFUTA1MjUxMDMRVGhlcm1vc3RhdCByZWNodHMCAwePbUtFUTAwNjQ1MzkOV2FuZHRoZXJtb3N0YXQCAQhtSEtFUTA0MDIxODIMVGhlcm1vc3RhdCAxAQE=\r\n">>,
  	decode(M).
  decode_m_2_test() ->
  	M = <<"M:00,01,VgICAgpXb2huemltbWVyCyORAQpOw6RoemltbWVyCG1IBQELI5FLRVEwNTU4NjU1EFRoZXJtb3N0YXQgbGlua3MCAQlCUktFUTA1MjUxMDMRVGhlcm1vc3RhdCByZWNodHMCAwePbUtFUTAwNjQ1MzkOV2FuZHRoZXJtb3N0YXQCAQhtSEtFUTA0MDIxODIMVGhlcm1vc3RhdCAxAQQFOLNKRVEwNDA0NjM3DkZlbnN0ZXJrb250YWt0AgE=\r\n">>,
  	decode(M).
  
  decode_l_test() ->
  	M = <<"L:CwlCUgkSGAkqAOIACwsjkQkSGA4qAN4A\r\n">>,
  	decode(M).
  
  decode_l_1_test() ->
  	M = <<"L:CwlCUgkSGAAYAAAACwsjkQkSGAAYAAAADAePbfYSGAQYAAAAyQsIbUhNEhkIIgCoAAYFOLNsEhJ=\r\n">>,
  	decode(M).
  
  decode_l_2_test() ->
  	M = <<"L:CwlCUgkSGBYsAAAACwsjkQkSGBgsAAAADAePbfYSGAQsAAAA1g==\r\n">>,
  	decode(M).
  