BLE and Attiny85

I used software serial for UART in attiny85 to connect it with BLE . But actually im unable to send decimal number over the UART port . It is sending HEX value . i used myserial.println to send the value .
What should i do to convert it into dec.
Thanks

Please post your code. Use code tags (the '#' button above the row of smileys).

What is connected to the Attiny? How are you displaying the data being sent by the Attiny?

i have connected attiny to my laptop , i check the output on REALTERM software.
the code:

#include <SoftwareSerial.h>
#define rxPin 0
#define txPin 1

int analogInPin = 3;   
int sensorValue = 0;        
       
SoftwareSerial serial(rxPin, txPin);
void setup()
{
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  serial.begin(9600);

}
void loop()
{
 sensorValue = analogRead(analogInPin);  
     
  serial.print(sensorValue);     
 
  delay(2000);   
}

i have used this code on arduino uno and it worked . Basically i want to display a sensor value .
code:

float temp;
int tempPin = 0;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  temp = analogRead(tempPin);
  
  Serial.print(temp);
  
  delay(1000);
}

i check the output on REALTERM

How are your realterm configured, you can chose ASII or Hex and a number of other.

And DON't crosspost

http://forum.arduino.cc/index.php?topic=276349.0

http://forum.arduino.cc/index.php?topic=123388.195

How are your realterm configured, you can chose ASII or Hex and a number of other.

yeah i did but it is showing some random signals when used in ascii and in hex it shows FF 00 FF ...
but the same thing works with arduino uno but not with attiny85

Double check that your data rate is 9600 in your terminal program. That would also give you the random signals and it's an easy one to miss.

Does the basic blink sketch work? Is it blinking at the correct rate? If not then it means you haven't set up the clock frequency correctly which would explain why serial isn't working.

Does the basic blink sketch work? Is it blinking at the correct rate? If not then it means you haven't set up the clock frequency correctly which would explain why serial isn't working.

yeah the blinking is not at correct rate .
Then how to set up the clock frequency ?

garvit94:
yeah the blinking is not at correct rate .
Then how to set up the clock frequency ?

It's all fuses for internal oscillator:

fusecalc