fixed correct sending lwm2m logs
This commit is contained in:
		
							parent
							
								
									edacfd57d6
								
							
						
					
					
						commit
						8193669266
					
				@ -35,7 +35,6 @@ public class TbLwM2MReadCallback extends TbLwM2MUplinkTargetedCallback<ReadReque
 | 
			
		||||
    @Override
 | 
			
		||||
    public void onSuccess(ReadRequest request, ReadResponse response) {
 | 
			
		||||
        logForBadResponse(response.getCode().getCode(), responseToString(response), request.getClass().getSimpleName());
 | 
			
		||||
        super.onSuccess(request, response);
 | 
			
		||||
        handler.onUpdateValueAfterReadResponse(client.getRegistration(), versionedId, response);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,7 @@ public abstract class TbLwM2MTargetedCallback<R, T> extends AbstractTbLwM2MReque
 | 
			
		||||
    @Override
 | 
			
		||||
    public void onSuccess(R request, T response) {
 | 
			
		||||
        //TODO convert camelCase to "camel case" using .split("(?<!(^|[A-Z]))(?=[A-Z])|(?<!^)(?=[A-Z][a-z])")
 | 
			
		||||
        if (response instanceof LwM2mResponse && !(response instanceof ReadResponse)) {
 | 
			
		||||
        if (response instanceof LwM2mResponse) {
 | 
			
		||||
            logForBadResponse(((LwM2mResponse) response).getCode().getCode(), response.toString(), request.getClass().getSimpleName());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user