mDoT LoRA Connect Example: No Console Messages

Home Forums mDot/xDot mDoT LoRA Connect Example: No Console Messages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13009
    Ashu Joshi
    Participant

    I was able to compile and run this program on mDot: https://developer.mbed.org/teams/MultiTech/code/mDot_LoRa_Connect_Example/

    I am getting the data being sent by mDot to the mLinux Conduit. However on both the mDOT Serial ports – I don’t see any output – logInfo that is being invoked in the code. I have made sure that the AT+LOG setting is set to 4 or higher.

    What could be going wrong?

    #13536
    Rico DelaSancha
    Participant

    Hi, Ashu

    you probably need to use the “pc.printf” instead.

    I’m using the USB Mbed programmer and it works well !

    // Serial via USB for debugging only

    Serial pc(USBTX,USBRX);
    ...
      pc.baud(115200);
      pc.printf("TTN mDot LoRa Temperature sensor starting ... \r\n");
      pc.printf("Network Address ");
        netAddress = dot->getNetworkAddress();
        for (std::vector<uint8_t>::iterator it = netAddress.begin() ; it != netAddress.end(); ++it)
            pc.printf("%2.2x",*it );

    cheers
    Rico

    #13602
    Ashu Joshi
    Participant

    Rico – thanks for the response – I should have closed this topic. My problem wasn’t the type of printf – but more basic. The Serial Port by default is set @ 9600 baud and I had to set it at that to get it working!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.