Hey there,
I have an arduino reciprocating cylinder controller with a bluetooth controller. it automaticaly performs up down cycles. I want to take the cyclecounter variable and print it to the app inventor screen. but I have multiple things communicating along the bt serial so I need a way of recognizing eg. cyclecounter: 10.
maybe something like this but i cant find the blocks to achieve this.
if starts with "CycleCount: " receivedData
// Extract the cycle count number data
set cycleCountStartIndex to length of "CycleCount: "
set cycleCountData to substring receivedData from cycleCountStartIndex
// Assuming you have a Label component named Label_CycleCount
Label_CycleCount.Text = "Cycle Count: " + cycleCountData