B4R Question How to Write the Log Value at ESP32 Pin

AndroidMadhu

Active Member
Licensed User
I wanted to know how to write the log value at any particular Pin at ESP32.

Below is the Code snippet
B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public Serial1 As Serial
    Public GetRSSI As Int
    Public GetAdd As String
    Public buttonOutPin As Pin --->Pin15 for ESP32
   
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    buttonOutPin.Initialize(15,buttonOutPin.MODE_OUTPUT)

I am getting expected Result from Inline C and Log the result at below Sub
B4X:
Private Sub Looper1
    RunNative("loop", Null)
    Log(GlobalStore.Slot0,",",GetRSSI)
End Sub


Below is small picture for reference..
-----------------------------------------------
1665571797885.png

I want to put the above log value at PIN 15 [TX PIN] of ESP32 So that I can get the same value at NodeMCU [DPIN 10 (RX)] to send the same at Cloud MQTT Server.


Please advice
 
Top