我想在onCharacteristicChanged方法中获取数组messageBytes的每个值,但是logcat消息有点乱。我以大胆的方式创造了自己的价值观。获得每个数组值的任何解决方案?感谢。
05-05 17:57:15.763 14107-14119 / com.example.android.bluetoothlegatt E / BluetoothLeService:Puck: [J [18,30,2.86, 05-05 17:57:15.800 14107-14119 / com.example.android.bluetoothlegatt I / BluetoothLeService:onCharacteristicChanged 05-05 17:57:15.800 14107-14119 / com.example.android.bluetoothlegatt E / BluetoothLeService:Puck: 的"正常" ]
library(dplyr)
library(ggplot2)
df %>%
mutate(c1 = as.numeric(as.character(c1)) %>%
ggplot(., aes(x = c1, y = c2)) +
geom_point() +
geom_smooth(method="lm")