1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4R Question logs messages

Discussion in 'B4R Questions' started by orpailleur, Apr 25, 2019.

  1. orpailleur

    orpailleur Member Licensed User

    Hi,
    I am working in udp and wosh sometimes activate a debug mode from the pc over ethernet, and not connect on the usb port. For this i would send the logs in UDP. How can i do it ?
    log("aa","bbb","cccc"....)
    should be
    logUdp("aa","bbb","cccc"....)
    with
    private sub logUdp(?????)
    if debug then
    send udp ???
    else
    log( ??? )
    end if
    end sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.
     
  3. orpailleur

    orpailleur Member Licensed User

    hi, is not code, only a sort of way for explain what i need
     
  4. tigrot

    tigrot Well-Known Member Licensed User

    This is not a standard feature. You should use a ethernet/RS232 converter. But it's tricky.
     
  5. thetahsk

    thetahsk Active Member Licensed User

    Well, this is very simple no need of extra hardware(ethernet/RS232 converter) . See the UDP examples and define your own communication protocol to distinguish between your data and your debug information.

    https://www.b4x.com/android/forum/threads/udp-communication.66592/

    Look at the example from rwblinn: UDP Communication between B4R and B4J.
     
    Last edited: Apr 26, 2019
    José J. Aguilar likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice